The Little Guy Posted August 31, 2007 Share Posted August 31, 2007 How can I use CURL to get an image from another website, and open it up in memory, and not save it to the server? Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted September 1, 2007 Author Share Posted September 1, 2007 anyone? Quote Link to comment Share on other sites More sharing options...
Timma Posted September 2, 2007 Share Posted September 2, 2007 Why are you trying to steal other peoples bandwidth and their images? Quote Link to comment Share on other sites More sharing options...
Jessica Posted September 2, 2007 Share Posted September 2, 2007 Uhm, PHP can generate images on the fly without saving them. imagepng() and etc. Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted September 2, 2007 Author Share Posted September 2, 2007 Uhm, PHP can generate images on the fly without saving them. imagepng() and etc. my host has url linking turned off, unless you use CURL... I can read the image in using curl, but when I print out the stuff, I get the encoding, the code with all the question marks and stuff. Why are you trying to steal other peoples bandwidth and their images? If the host didn't want their images stolen, they would either do 1 or more of these things: 1. save the image encoding in a database 2. not allow hot linking 3. take the image off the internet how do you know I am not taking images from one of my websites, and passing it through to another site? Quote Link to comment Share on other sites More sharing options...
Timma Posted September 2, 2007 Share Posted September 2, 2007 If the host didn't want their images stolen, they would either do 1 or more of these things: 1. save the image encoding in a database 2. not allow hot linking 3. take the image off the internet how do you know I am not taking images from one of my websites, and passing it through to another site? Well think about it this way, I asked why you were doing it, you could either say: - It's my own site I'm getting them from, or - I'm stealing them because I can't be stuffed to upload them on my website. Also, this is all I found. http://curl.haxx.se/libcurl/php/examples/getbinarypageinvar.html You apparently have to change the header. Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted September 2, 2007 Author Share Posted September 2, 2007 Timma, sorry if I sounded a bit "Mean/rude" it wasn't meant to be. Thanks for the link, basically what I am doing is taking an image from off the web, temporarily saving it to my site, so the user can add a text comment on top of the image, save it, then upload it to a image hosting service to share with others. Quote Link to comment Share on other sites More sharing options...
Timma Posted September 2, 2007 Share Posted September 2, 2007 Well why not make it save, with some random name. (Using md5() makes good random file names) And then make it upload to the file hosting place, and then delete it from your server? Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted September 2, 2007 Author Share Posted September 2, 2007 I am going to take something I already have, take an image from a website, and with the thing I already have (text maker), I am going to place that text on the image. What I already have: http://myspace.publicsize.com/generators/dynamicImage.php?code=dynamicImage 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.