jck Posted July 15, 2007 Share Posted July 15, 2007 i want the image to be one in a link stored in a variable like http://www.site.com/pic.gif stored in $var how do i do it echo "<td align=center valign=top width=100><center><img src=\"../items_images/$NewImageName\" width=100></center></td>\n\t<td>"; Link to comment https://forums.phpfreaks.com/topic/60122-solved-picture-in-php/ Share on other sites More sharing options...
cooldude832 Posted July 15, 2007 Share Posted July 15, 2007 you echoed out the code right there <?php $img = "myimage.png"; echo "<img src=\"".$img."\" />"; ?> Link to comment https://forums.phpfreaks.com/topic/60122-solved-picture-in-php/#findComment-299077 Share on other sites More sharing options...
jck Posted July 15, 2007 Author Share Posted July 15, 2007 i need it to get an image from another site not the same one Link to comment https://forums.phpfreaks.com/topic/60122-solved-picture-in-php/#findComment-299078 Share on other sites More sharing options...
AndyB Posted July 15, 2007 Share Posted July 15, 2007 i need it to get an image from another site not the same one So people call that leeching; some call it bandwidth theft. Link to comment https://forums.phpfreaks.com/topic/60122-solved-picture-in-php/#findComment-299081 Share on other sites More sharing options...
cooldude832 Posted July 15, 2007 Share Posted July 15, 2007 if you want to link outside your server appache and most browsers will require the protcol to be include i.e :http://www.google.com/intl/en_ALL/images/logo.gif not www.google.com/intl/en_ALL/images/logo.gif Link to comment https://forums.phpfreaks.com/topic/60122-solved-picture-in-php/#findComment-299082 Share on other sites More sharing options...
cooldude832 Posted July 15, 2007 Share Posted July 15, 2007 yes that is true, do not use without consent, also if you get consent it be better to copy it to your server and then use a localized address Link to comment https://forums.phpfreaks.com/topic/60122-solved-picture-in-php/#findComment-299084 Share on other sites More sharing options...
jck Posted July 15, 2007 Author Share Posted July 15, 2007 i need it to get an image from another site not the same one So people call that leeching; some call it bandwidth theft. since the free host im using has bandwidth limit i want to store some images in google pages Link to comment https://forums.phpfreaks.com/topic/60122-solved-picture-in-php/#findComment-299085 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.