Friday 22 May 2015

PHP Sucks on the file_exist() Function

I wonder why Father Rasmus Lerdorf(Cap Off) and team Zend would make file_exist() to check for both if dir or file exist without even passwing a second argument to force it to check for files only and return false once file does not exist..
I expect there should be file_exist() and dir_exist()

The alternative is_file() function is for a diff scenerio, dont wanna talk about that..


If you think i dont use the doc.... you can name the function that can do the ish please...


No comments:

Post a Comment