Re: Problem on file_exists() function

From: Date: Wed, 17 Jul 2002 15:55:20 +0000
Subject: Re: Problem on file_exists() function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-108103@lists.php.net to get a copy of this message
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/dealing/test.txt') ) > if (file_exists("c:\\pdf_reports\\test.txt")) > Then it can detect the file is there! why? Probably, PHP doesn't have permissions on the "dealing" directory or you misspelled it. --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

« previous php.general (#108103) next »