Home >> PHP >> Check the file is available or not in PHP

Check the file is available or not in PHP

The file_exits() function used to Check the file is available or not.

Example

if(file_exits("abc.txt")){

      echo "file exits";

}else{

     echo "file not exits";

}

Post Your Comment

Next Questions
Destroy the file
Write into the file
Create into folder
Remove a folder
touch() function
file_exits() function
unlink() function
fwrite() function
mkdir() function
rmdir() function
is_dir() function
file_get_contents() function
fgets() function
basename() function
chgrp() function
chmod() function
chown() function
clearstatcache() function
copy() function
delete() function
dirname() function
disk_free_space() function
disk_total_space() function
diskfreespace() function
feof() function

Copyright ©2022 coderraj.com. All Rights Reserved.