How to check if a given file is dir (folder) or file in PHP

1 Answer

0 votes
echo filetype('d:\\xampp') . "<br />";
echo filetype('d:\\data.txt') . "<br />";

/*
run: 

dir
file

*/

 



answered Jun 17, 2016 by avibootz
...