PHP's file_exists() will not work for me?
问题 For some reason this PHP code below will not work, I can not figure it out. It is very strange, file_exists does not seem to see that the image does exist, I have checked to make sure a good file path is being inserted into the file_exists function and it is still acting up If I change file_exists to !file_exists it will return an images that exist and ones that do not exist define('SITE_PATH2', 'http://localhost/'); $noimg = SITE_PATH2. 'images/userphoto/noimagesmall.jpg'; $thumb_name =