Forum Moderators: coopster

Message Too Old, No Replies

Saving an image via php on your webserver

         

turbohost

7:14 am on Apr 4, 2006 (gmt 0)

10+ Year Member



Hi Guys,

I want to save the image located at http://www.example.com/images/1.jpg to my local webserver via php. Is this possible? If I get the image via fopen and I echo the image to IE I get a screen full of strange characters.

Turbo

Habtom

8:04 am on Apr 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



indeed you will get the strange characters. If you open the file and echo it that will happen. What I think you should do is img src it.

Habtom