Reputation: 63
I have one page using this function to check if one file is on folder, recently i changed my server and the page started show some problems, i don't know why, but this verification not run well.
the code is:
$path ="../folder/file.tif";
if(file_exists($path)){
echo "file is ok";
}
Anyone ever had this problem?
Tks
Upvotes: 0
Views: 382
Reputation: 23216
If safe_mode restrictions have been enabled on the server, you may run into trouble when the owner of the folder
directory or the file itself is different than the one running PHP.
Upvotes: 2