Dear All,
I want to write a simple PHP code to verify whether a given list of
URLs is broken or not. The URLs given have various formats, for example,
fsockopen(...) only accepts target format (like www.yahoo.com etc), so I
simply choose fopen (url,'r') to do the test.
This method seems working well for majority of URLs I have. However,
when the following site seems causing problem,
$site = fopen("http://www.marketingpo wer.com/live/topics12.php",' r');
my browser seems working very hard on this link and after a long time,
the browser stops (not continuing on the next command. I am using
netscape on linux).
Initially I thought probably fopen doesn't like http://xxxx/xxx.php type
of format, however, links like:
works just fine.
So I am confused. Can anybody give me a hint on this?
Thanks.
I want to write a simple PHP code to verify whether a given list of
URLs is broken or not. The URLs given have various formats, for example,
fsockopen(...) only accepts target format (like www.yahoo.com etc), so I
simply choose fopen (url,'r') to do the test.
This method seems working well for majority of URLs I have. However,
when the following site seems causing problem,
$site = fopen("http://www.marketingpo wer.com/live/topics12.php",' r');
my browser seems working very hard on this link and after a long time,
the browser stops (not continuing on the next command. I am using
netscape on linux).
Initially I thought probably fopen doesn't like http://xxxx/xxx.php type
of format, however, links like:
works just fine.
So I am confused. Can anybody give me a hint on this?
Thanks.
Comment