[PHP] Re: include from another URL

2004-05-12 Thread AcZ
Nik wrote:
Hi there,
I'm new to these groups so forgive me if I'm asking at the wrong place (tell me where 
then :)
Ok,
I'm not PHP guru but I need to create a simple script that would do this:
Include a content from another URL into the current output. I have done something like
this:
-- code start
http://myotherurl.com:8080';
?>
-- code end
and it seems to work with one exception: it produces a warning message saying 
something like
 "Warning: main(): stream does not support seeking in .../web-root/index.php on line 9"
where line #9 is: include 'http://myotherurl.com:8080'; from above code.
It then shows a message from 'http://myotherurl.com:8080'
Thanks!!!
Nik
Nik,

try fopen instead of include..

http://br.php.net/manual/en/function.fopen.php
look at comments...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Antwort: RE: [PHP] Saving and mailing remote file

2004-05-13 Thread AcZ
Sascha Meyer wrote:
Hi again,

I need to download a remote file (e.g. some linked pdf document on another 
server) and send this file to a defined user.
I don't know if there is a way to attach a remote file to an email (I 
don't want to send a link to the above mentioned file, but the file 
itself...)

Sascha
Hi,

I think you can use fopen and save the file on the server and than send 
this file attached..

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