flix_is_here22 Posted May 10, 2012 Share Posted May 10, 2012 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. 1 Link to comment Share on other sites More sharing options...
birbal Posted May 10, 2012 Share Posted May 10, 2012 (edited) 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 May 10, 2012 by birbal Link to comment Share on other sites More sharing options...
flix_is_here22 Posted May 11, 2012 Author Share Posted May 11, 2012 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: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 More sharing options...
flix_is_here22 Posted May 11, 2012 Author Share Posted May 11, 2012 yeee....finaly i found it.... ^_^i must put the file php and file.txt or .log into localhost using XAMPP..... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now