Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php file exist

<?php
$filename = '/path/to/foo.txt';

if (file_exists($filename)) {
    echo "The file $filename exists";
} else {
    echo "The file $filename does not exist";
}
?>
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #file #exist
ADD COMMENT
Topic
Name
5+7 =