How to check if file exist in PHP

1 Answer

0 votes
if (file_exists("/temp.txt"))
    echo "file exist";
else
    echo "file NOT exist";


answered Jul 7, 2014 by avibootz
...