Php File Exist

[Solved] Php File Exist | Php - Code Explorer | yomemimo.com
Question : php file exist

Answered by : stefan-jilderda

<?php
$filename = '/path/to/foo.txt';
if (file_exists($filename)) {
    echo "The file $filename exists";
} else {
    echo "The file $filename does not exist";
}
?>

Source : https://www.php.net/manual/en/function.file-exists.php | Last Update : Tue, 21 Apr 20

Question : php check if file exists

Answered by : mobile-star

if (!file_exists('http://mysite.com/images/thumbnail_1286954822.jpg')) {
$filefound = '0';
}

Source : | Last Update : Tue, 31 Mar 20

Answers related to php file exist

Code Explorer Popular Question For Php