page output to file
| From: | Aidal | Date: | Fri, 11 Mar 2005 14:59:00 +0000 |
| Subject: | page output to file | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-25743@lists.php.net to get a copy of this message | ||
Hi NG.
I'm having trouble making a local php script open a remote php script and
save the output of the remote script in a local file.
I have FTP access to the remote server, so if placing the "local" script at
the same server as the "remote" script, makes this easier this would also be
an option for me.
What I want to do is like this:
A local script like: http://localhost/fetch_remote_contents.php
fetch_remote_contents.php should open the remote script
http://www.blablabla.com/index5.php?id=23554
and save it's output in a local file instead of displaying it in a browser.
If this can't be done, running fetch_remote_contents.php from the same
remote server as index5.php and saving the output in a file on the remote
server is also an option as I have access to it.
Can anyone help me out here, I'm pretty sure it's possible because I think
I've done it before I just forgot how :o(
Thanks, Aidal