Re: How to use PHP to find hte presence or absent of the file???

From: Date: Mon, 04 Mar 2002 18:19:32 +0000
Subject: Re: How to use PHP to find hte presence or absent of the file???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-87131@lists.php.net to get a copy of this message
Here's the reply I got from someone out posting it to this outlook! The case is now closed! --clip begin-- How about: http://www.php.net/manual/en/function.file-exists.php ? -- clip end-- Thanks, Scott "Scott Fletcher" <scott@abcoa.com> wrote in message news:20020304181542.91517.qmail@pb1.pair.com... > Hi ya all! > > I'm trying to figure out how to use the PHP script to detect the > presence or absent of the file. I'm using UNIX machine, so it is not a > problem. I do not want to use the fopen() to open the file since it is not > a readable file, but a executable file. I'm thinking of using the exec() > function to list hte file and return true if the file is there. > > exec("ls -la test.exe"); > > The only problem is how to tell? Anyone know? Thanks! > > Scott > >

« previous php.general (#87131) next »