Jump to content

create, read, write, delete .txt or .log file


flix_is_here22
 Share

Recommended Posts

hi,i confuse why http://www.w3schools.com/php/func_filesystem_file_get_contents.asp does'nt work for me??i want to create file, read file, write at the end of line, and delete file. i have try this http://www.php.net/manual/en/function.fopen.php....and it's not work too.... :facepalm:when debuging using dreamweaver it is still doesn't work....just the blank of page.

  • Like 1
Link to comment
Share on other sites

post your current code which is not working.

  error_reporting(E_ALL);display_error(true);

prepend it to your top of code. if there is any error showing post that too.

Edited by birbal
Link to comment
Share on other sites

post your current code which is not working.
  error_reporting(E_ALL);display_error(true);

prepend it to your top of code. if there is any error showing post that too.

thx for reply me.... this is my first code and this is the same code like w3school tutor...<?phpecho file_get_contents("test.txt");$homepage = file_get_contents("test.txt");echo $homepage;?> this is a second code put your code in the top of my code....<?phperror_reporting(E_ALL);display_error(true);echo file_get_contents("test.txt");$homepage = file_get_contents("test.txt");echo $homepage;?> both of them it's still doesn't work?? :facepalm: :facepalm:the debuging result it's the same result....just blank of page....i want to post the picture result of my code but i don't know how to post it...
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...