Having some difficulty in getting rid of a part of a image I downloaded using curl...
$img = strstr($pic, 'image/png\n');
Is what I'm using.
$pic:
HTTP/1.1 200 OK
Date: Sat, 28 Oct 2006 12:53:35 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Transfer-Encoding: chunked
Content-Type: image/png
‰PNG
(Stuff I can't write)
I only want the actual image, so I want:
‰PNG
(Stuff I can't write)
Thanks-