PHP can't read File
| From: | BizHat.com Free Hosting | Date: | Fri, 30 Jul 2004 12:10:49 +0000 |
| Subject: | PHP can't read File | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-14015@lists.php.net to get a copy of this message | ||
Hi,
I have following script
<?php
$file_content = file ("./data/reserved.txt","r") or die("Unable to open
file");
while(list($line_num,$line) = each ($file_content)) {
$line = trim($line);
echo "$line<br>";
}
?>
at
http://free.bizhat.com/test.php
I get
Unable to open file
error. What should i do ?
I use PHP 5 on Apache 2, anything with configuration ?
My phpinfo() available at
http://free.bizhat.com/phpinfo.php
Regards,
Yujin Boby