Re: Binary file copy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jay Moore wrote:
in the response you'll be getting the raw http response (including headers); so you're saving them as well thus not a valid image file.

can't see why:
$image = file_get_contents('http://10.10.10.3/record/current.jpg');
wouldn't work for you..

file_get_contents worked beautifully.  Thanks for the suggestion!

Jay

no problem + credit to Andrew who suggested the same thing more concisely!

glad you got a fix

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux