Re: Binary file copy

From: Date: Thu, 16 Oct 2008 20:13:07 +0000
Subject: Re: Binary file copy
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-281997@lists.php.net to get a copy of this message
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

« previous php.general (#281997) next »