Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php check if folder exists


<?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 #check #folder #exists
ADD COMMENT
Topic
Name
2+6 =