Reply to Does 'fopen' work only within the same directory?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация