简体   繁体   中英

Problems with file_exists() function

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM