Jump to content

Why does this work???


seany123

Recommended Posts

<?php
$path = "www.DOMAINHERE.com/images/showlogos/".$showNAME."_logo.jpg";
if (file_exists($path)){
    echo "YES";
?>
<a href="index.php"><img src="/images/showlogos/<?=$showNAME?>_logo.jpg" width="190" height="62" /></a><br /><br />
<?php
}
else {
    echo "NO!";
    echo $path;
}
?>

 

the result is echoing out NO! which means the file doesnt exist... however when i c+p the echo'd $path into my address bar, it shows the image..

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/246478-why-does-this-work/
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.