Jump to content

Archived

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

11Tami

What do I need to do to call an image in php?

Recommended Posts

Hi, I have a few scripts that you don't even have to specify that its a web page. You just stick an address in an array that is in a directory and it appears. But when I try to use an image in its place a bunch of code shows on the page instead of a .gif etc. What do you need to call an image with php? Thanks!

Share this post


Link to post
Share on other sites
I think you need to use html code.

put this inside your php script
echo "<img src="X">;

Share this post


Link to post
Share on other sites

×

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.