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" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED].; > 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 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php