I've read the documentation at php.net for readline and fopen, and it makes sense. However, my file isn't opening.
I don't know why, but I think it might be because of the way I've written the location of the file. it's on the desktop.
I called the script nameFetcher.php and I wrote in it:
$fd = fopen("c:\WINDOWS\Desktop\names.txt", "r");
echo "$fd";
I get something like : Resource id 23492
Then I switched it to:
$fd = fopen("c:\Desktop\names.txt", "r");
echo "$fd";
and i get a parse error that says that "c:\Desktop\names.txt" doesn't exist in the place where I save my php scripts. which is something like, c:\Program Files\Apache Group\Apache\htdocs
and so I save names.txt in that place also, and change the location to in the fopen function to:
c:\Program Files\Apache Group\Apache\htdocs
that doesn't work.
Can someone tell me what I'm doing incorrectly? Thanks.