Re: [PHP] using fopen() to download remote files

2002-10-03 Thread Marek Kilimajer

The server never sends you somethink you don't request. Simply get the 
page and there will be no images. If you would want to do the oposite 
you would have much more trouble.

Rusty Small wrote:

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.

Cliff



  



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




Re: [PHP] using fopen() to download remote files

2002-10-03 Thread Jason Wong

On Thursday 03 October 2002 15:00, Rusty Small wrote:
 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.

That is what fopen() does anyway ...

 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? 

... in other words there's nothing that you need do to get this behaviour.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
Iron Law of Distribution:
Them that has, gets.
*/


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