Jump to content

Can't get an image to echo....


suttercain

Recommended Posts

I'd try it in a different browser, (try refreshing the page first, though you've probably done that 30 times)

 

Also, try putting it into a variable first just to see what happens... i.e.

 

$echoiticommandyou = "<img src=\"checked.gif\"/>";

echo $echoiticommandyou;

Hi guys,

 

Okay I just tried running this code:

 

<?php

echo '<img src="checked.gif">';

echo '<img src="http://localhost/ARB/checked.gif">';

?>

 

and it printed <img src="checked.gif"><img src="http://localhost/ARB/checked.gif"> to the browser. When I try to view the image by typing in http://localhost/ARB/checked.gif and the image showed up.

 

Any ideas?

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.