Re: using fopen() to download remote files
| From: | gamin | Date: | Thu, 03 Oct 2002 09:29:32 +0000 |
| Subject: | Re: using fopen() to download remote files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-118717@lists.php.net to get a copy of this message | ||
"Rusty Small" <rusm71@bellsouth.net> wrote in message
news:20021003040250.43031.qmail@pb1.pair.com...
> I have written a script in which the main purpose is to download html
pages
> from multiple web servers. I'm using the fopen() function to download
these
> pages. I would like to be able to download only the source (text) and no
> binary data as this would greatly improve the speed of my script.
>
> I've seen this on the client side with browsers being set to text only
mode.
> Is there a way to do this with php on the sever side to tell the remote
web
> server to not download the images associated a particular URL? I'm
running
> Red Hat 7.3 and Apache web server.
>
> Any help would be greatly appreciated.
fopen() will open only the HTML document specified.
It does not open or download any of the images etc, not even external styles
etc.
HTH
gamin.