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

2002-10-03 Thread Cliff Small
Thanks for the help Gamin. I've been reading some posts and have noticed that lots of people are having the same problem as I. I'm using php 4.1.2 which came with redhat 7.3. I think that there was a bug in 4.1.2 regarding fopen() and unusually long delays with HTTP files. I may try and compil

[PHP] Need help with fsockopen()

2002-10-04 Thread Cliff Small
I have a script that downloads html pages from many different sites. The script executes as expected but is slw. I would like to replace fopen() with fsockopen() so that I can set a time limit for the page downloads. Here is an example of how I'm using fopen(): $OpenFile = fopen("$site