Checking for Existence with file_exists() : file_exists « File Directory « PHP
- PHP
- File Directory
- file_exists
Checking for Existence with file_exists()
<?
if ( file_exists ("data.txt") ) {
print "The file exists!";
}
?>
Related examples in the same category