How to read/to download attachment on an URI? [message #172491] |
Mon, 21 February 2011 10:59 |
n00m
Messages: 25 Registered: February 2011
Karma:
|
Junior Member |
|
|
$contents = stream_get_meta_data($handle);
=================================================
Array
(
[wrapper_data] => Array
(
[0] => HTTP/1.1 200 OK
[1] => Date: Mon, 21 Feb 2011 10:50:27 GMT
[2] => Server: Apache
[3] => Content-disposition: attachment;filename=null.csv
[4] => Content-Length: 0
[5] => Connection: close
[6] => Content-Type: text/plain
)
[wrapper_type] => http
[stream_type] => tcp_socket
[mode] => r
[unread_bytes] => 0
[seekable] =>
[uri] => http://******************************
[timed_out] =>
[blocked] => 1
[eof] =>
)
And what now? How to get the attachment programatically?
|
|
|