Problem on file_exists() function

From: Date: Wed, 17 Jul 2002 07:55:10 +0000
Subject: Problem on file_exists() function
Groups: php.general php.windows 
Request: Send a blank email to php-general+get-108042@lists.php.net to get a copy of this message
Dear all I had made a test.txt file which stored in the following window path : c:\pdf_reports\dealing\test.txt, In my page, i ask php to check the test.txt exist in foler (c:\pdf_reports\dealing) using the following script: if (file_exists("c:\\pdf_reports\\dealing\\test.txt")) { print ("exist"); } else { print ("Doesn't Exist!"); } It seems that php can't detect the file in such path!!! I had made another test on this, i moved the test.txt to one level up which is (c:\pdf_reports) and i use the following script : if (file_exists("c:\\pdf_reports\\test.txt")) { print ("exist"); } else { print ("Doesn't Exist!"); } Then it can detect the file is there! why? -- Thx a lot! Jack nedcor4@nedcor.com.hk

« previous php.general (#108042) next »