Jump to content

[SOLVED] is_readable failing???


cooldude832

Recommended Posts

I had a nice function that loaded a blank image if someone monkeyed around with the url for my image gallery viewer:

<?php
$image = "http://www.upperstraitscleanlake.org/Gallery/".$imgsource;
if (!is_readable($image))
{
	$image = "http://www.upperstraitscleanlake.org/Gallery/images/noimage.jpg";
}
?>

you can see it at:

http://upperstraitscleanlake.org/Gallery/imgview.php?type=nature&img=1

 

now it fails on all images, but if you not the image you see at the top its source is $image (before entering the if logic) and now the function is always saying yes $image is not readable

Link to comment
https://forums.phpfreaks.com/topic/57354-solved-is_readable-failing/
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.