I need to check to see if an image exists on a remote server and if it does, show it. This is what I have tried:
$imgCheck=readfile("http://$domainid:8900/$courseid/images/banner.jpg");
if($imgCheck) echo "<img border=0 src=\"http://$domainid:8900/$courseid/images/banner.jpg\" width=\"550\" height=\"80\" alt=\"banner\">";
So far I can't get it to work out. What I am I missing
$imgCheck=readfile("http://$domainid:8900/$courseid/images/banner.jpg");
if($imgCheck) echo "<img border=0 src=\"http://$domainid:8900/$courseid/images/banner.jpg\" width=\"550\" height=\"80\" alt=\"banner\">";
So far I can't get it to work out. What I am I missing
Comment