PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am absolutely a beginner to PHP and even to developing. i am learning php via. http://www.phphelps.com and at one stage i came across File handling in php. Below here is the example code given in the tutorial
When i run this code, i got into infinite loop and moreover i don't know where i have to store the file "data.txt" in my local hard drive. Even i tried with the full path to read this file but am getting error "No such file or directory exists". Presently i stored this file in the directory which is the web server's (Apache)\htdocs. can anyone please help with this? so that i can move further in my learning.
mintedjo wrote:If you save the file in the same directory as the php file you will only need the filename "data.txt".
and what is this character? 皜 xD
Hi,
It has been removed and it seems some typographical mistake. even i tried the same using "foreach" loop it din't work. Yes, i tried using "data.txt" simply and i was getting same error. kindly help me.