Getting very confused over an image file - can you help?
The url of the image is http://vintage-british-diecasts.lefo...7/P3270552.jpg
(I'm trying to help a friend archive his forum, so am not breaching copyright).
Problem is that when I use either PHP to download the image by using file_get_contents or by using CURL, the file that I get is not the .jpg file, but the HTML source code of the page it is sitting on.
I've tried several different methods in PHP and CURL but the result is always the same. The file contents I end up with is:
<html><head></head><body><img src="http://vintage-british-diecasts.lefora.com/composition/attachment/6e0d8d1af650b33daea499e0757725d5/507827/P3270552.jpg"></body></html>
Martin
-
Valdor Kiebach -
Thanks
{{ DiscussionBoard.errors[8203691].message }} -