Source Code:
(back to article)
<?php $filename = "example.txt"; if (file_exists($filename)) { echo "The file '$filename' exists." . PHP_EOL; } else { echo "The file '$filename' does not exist." . PHP_EOL; }
Result:
Report an issue