Posted by francescomoi on 09/13/05 18:19
I'm trying to read a file with PHP: -------------------- $fileToRead = "foo.txt"; //Option-1 #$fileToRead = "/home/frank/otherdir/foo.txt"; //Option-2 $dataFile = fopen($fileToRead, "r") ; ------------------- Option-1 works but Option-2 doesn't, but 'foo.txt' is COMPULSORY within another directory. What can I do? Regards.
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming