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>"; Quote Link to comment 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."\" />"; ?> Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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.