FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » How to read/to download attachment on an URI?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: How to read/to download attachment on an URI? [message #172527 is a reply to message #172522] Mon, 21 February 2011 16:43 Go to previous messageGo to previous message
Erwin Moller is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Cake PHP RAD Framework
Next Topic: 500. Turbo Sort
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 09 14:39:28 GMT 2024

Total time taken to generate the page: 0.05250 seconds