Jump to content

[SOLVED] is_file problems


Dan911

Recommended Posts

I know this file exists, but how come the is_file command isnt working? I have to get this working with an absolute path. I also tried file_exists to no avail

 

if (is_file($_SERVER['DOCUMENT_ROOT'] . "stuff/images/resizedimage.jpg"))
{
echo "file exists - " . $_SERVER['DOCUMENT_ROOT'] . "/stuff/images/resizedimage.jpg";
}
else
{
echo "file not found - " . $_SERVER['DOCUMENT_ROOT'] . "/stuff/images/resizedimage.jpg";
}

Link to comment
https://forums.phpfreaks.com/topic/61403-solved-is_file-problems/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.