RE: [PHP] Problem on file_exists()
| From: | David Redmond | Date: | Tue, 16 Jul 2002 07:07:31 +0000 |
| Subject: | RE: [PHP] Problem on file_exists() | ||
| Groups: | php.general php.windows | ||
| Request: | Send a blank email to php-general+get-107811@lists.php.net to get a copy of this message | ||
Jack, try using forward slashes instead of backslashes;eg
$fp = fopen("//nedcoraa/pdf_reports/dealing/filename.ext", "r+");
Cheers
-----Original Message-----
From: Jack [mailto:nedcor4@nedcor.com.hk]
Sent: Tuesday, 16 July 2002 5:02 PM
To: php-general@lists.php.net; php-windows@lists.php.net
Subject: [PHP] Problem on file_exists()
Dear all
I had a folder which the path is : (\\nedcoraa\pdf_reports\dealing
room\report) it stores a lot of PDF reports in there.
I'm trying to use the file_exists() function to detect if a specific file
exist in this folder, but i got a problem is :
It seems that php can go through (\\nedcoraa\pdf_reports) but it can't go
through (dealing room) folder. i had made test on it, i moved a file into
(\\nedcoraa\pdf_reports), then php can detect it, but if i move it to
(\\nedcoraa\pdf_reports\dealing room), then it can't detect the file! why?
I'm using php in windows NT IIS environment!
Please help me!
--
Thx a lot!
Jack
nedcor4@nedcor.com.hk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php