11Tami Posted September 28, 2006 Share Posted September 28, 2006 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! Quote Link to comment https://forums.phpfreaks.com/topic/22338-what-do-i-need-to-do-to-call-an-image-in-php/ Share on other sites More sharing options...
mendoz Posted September 28, 2006 Share Posted September 28, 2006 I think you need to use html code.put this inside your php scriptecho "<img src="X">; Quote Link to comment https://forums.phpfreaks.com/topic/22338-what-do-i-need-to-do-to-call-an-image-in-php/#findComment-100050 Share on other sites More sharing options...
HuggieBear Posted September 28, 2006 Share Posted September 28, 2006 If the above doesn't work, then post your code.RegardsHuggie Quote Link to comment https://forums.phpfreaks.com/topic/22338-what-do-i-need-to-do-to-call-an-image-in-php/#findComment-100174 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.