Re: dynamic -> static html
| From: | Aidal | Date: | Mon, 14 Mar 2005 09:33:44 +0000 |
| Subject: | Re: dynamic -> static html | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-25742@lists.php.net to get a copy of this message | ||
Nevermind... I found out now.
file_get_contents(http://www.blabla.com/index.php); does the job it seems.
"Aidal" <peter@prescriba.com> wrote in message
news:20050314083830.34853.qmail@lists.php.net...
> Hi NG.
>
> I'm trying to re-make a script I once had to make static html out of some
> dynamic sites.
> I'm having trouble though, I can't recall how I got the script output to a
> file instead of to the screen/browser.
>
> I use a local apache server to run the script from and it's supposed to
> fetch the output from a remote script.
>
> What I'm trying to do is this:
> ----------------------------
>
> [local apache]: fetch.php requests
> http://www.domain.com/index5.php from
> [remote apache]
> [local apache]: fetch.php saves the output (from index5.php above) to
> index.html on the local server.
>
> This is fairly simple I know, but I've forgotten how I did it last time.
>
> Any help would be much appreciated.
>
> PS. I have access to the remote server as well if running fetch.php from
> there would make any difference.
>
> /Aidal