I want to check if file do not exists. When file_exists() function returns false I can\'t be sure if the file do not exist or I don\'t have permiss
file_exists()
false
Well, you could first try file_exists(). In the event that fails, you could try fopen() with the +a flag. If that fails, you don't have permission.