Hi all,
When i trying to fopen() a file which saving in a window 2000 server , it returns a message “Warning: fopen(\192.168.78.2\country\COUNTRY.TXT): failed to open stream: Permission denied in C:\wamp\www\WebForm\routeTable\changeRoute.php”
;
But i can open the file directly if via window browser, so i’m not understand why it saying Permission denied, someone knows why? Thank you
[php]
$file_handle = fopen(’\\192.168.78.2\country\COUNTRY.TXT’,“r”);
if (is_readable($file_handle)) {
echo ‘The file is readable’;
} else {
echo ‘The file is not readable’;
}
[/php]