RE: [PHP] get a html page and save it to a file
| From: | John Holmes | Date: | Sun, 16 Jun 2002 16:09:22 +0000 |
| Subject: | RE: [PHP] get a html page and save it to a file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102403@lists.php.net to get a copy of this message | ||
Fopen("http://www.example.com/page.html","r");
Or
File(http://www.example.com.page.html);
My email program might mess up that code...either way, just use fopen()
or file() to open the page, read it into a variable, then write that
variable somewhere on your own system...
---John Holmes...
> -----Original Message-----
> From: Aborla.net - webmaster [mailto:webmaster@aborla.net]
> Sent: Sunday, June 16, 2002 10:44 AM
> To: php-general@lists.php.net
> Subject: [PHP] get a html page and save it to a file
>
> Hello again,
>
> I would like to know how can I download a html page from other server
and
> write it's contents in a file.
>
> Thanking in advance,
> Nuno Lopes
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php