Re: [PHP] Problem on file_exists() function

2002-07-17 Thread Analysis & Solutions
On Wed, Jul 17, 2002 at 03:55:10PM +0800, Jack wrote: > > if (file_exists("c:\\pdf_reports\\dealing\\test.txt")) > It seems that php can't detect the file in such path!!! While this isn't your problem, it's nicer coding. Single quotes and forward slashes: if ( file_exists('c:/pdf_reports/de

Re: [PHP] Problem on file_exists()

2002-07-16 Thread Chris Hewitt
Jack wrote: >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 thr

RE: [PHP] Problem on file_exists()

2002-07-15 Thread David Redmond
Jack, try using forward slashes instead of backslashes;eg $fp = fopen("//nedcoraa/pdf_reports/dealing/filename.ext", "r+"); Cheers -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 16 July 2002 5:02 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Proble