Re: How to read/to download attachment on an URI? [message #172527 is a reply to message #172522] |
Mon, 21 February 2011 16:43 |
Erwin Moller
Messages: 228 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 2/21/2011 5:01 PM, n00m wrote:
>> $contents = stream_get_meta_data($handle);
>> $rawData = file_get_contents($contents["uri"]);
>
> Hi, Erwin.
> Your suggestion doesn`t seem work.
What is not working?
It should work.
What does the following produce for you:
$contents = stream_get_meta_data($handle);
$theUri = $contents["uri"];
echo "\$theUri=$theUri <br>\n";
$rawData = file_get_contents();
echo "\$rawData is:<br>\n $rawData ";
Erwin Moller
> Thanks for your reply, anyway :=)
--
"That which can be asserted without evidence, can be dismissed without
evidence."
-- Christopher Hitchens
|
|
|