How would I go about checking to see if a file exist from php?
I didn't find anything on php.net when I did a search for exist.
basically, I'm trying to accomplish this.
if $file exist {
do something;
}else{
echo "$file doesn't exist";
}
thanks in advance.
Kenneth R Zink II [EMAIL
From: "Kenneth R Zink II" [EMAIL PROTECTED]
How would I go about checking to see if a file exist from php?
I didn't find anything on php.net when I did a search for exist.
if (file_exists("/full/path/to/file.txt"))
http://php.net/manual/en/function.file-exists.php
--
PHP General
You must not have searched to hard on the site,
http://www.php.net/file_exists
Keith
On Wed, 14 Mar 2001, Kenneth R Zink II wrote:
How would I go about checking to see if a file exist from php?
I didn't find anything on php.net when I did a search for exist.
basically, I'm trying to
3 matches
Mail list logo