Add file path checking using php_stat