>>
Use PHP to get the title, keywords and description of a remote web page
Here are the latest comments for the resource Get Remote Web Page Information Using PHP.
Ah! 1 to 9! Duh
James Lawrie commented on 13/08/2008, 15:19:15
I think this could block if the server closes the connect after sending the page. I'd suggest using fread instead of fgets, and possibly parse the HTTP header to find the content length.
Also, would this work for any file on the server or would you have to post a GET?
On a side note, the captcha is more of an annoyance than a spam deterrant (any parser can add up the two numbers), and the clue is wrong:
To prove you're a human please tell us the sum of 1 and 2 (It will be 1-9)
1+2 != 1-9
James Lawrie commented on 13/08/2008, 15:18:34
I think this could block if the server closes the connect after sending the page. I'd suggest using fread instead of fgets, and possibly parse the HTTP header to find the content length.
Also, would this work for any file on the server or would you have to post a GET?
On a side note, the captcha is more of an annoyance than a spam deterrant (any parser can add up the two numbers), and the clue is wrong:
To prove you're a human please tell us the sum of 1 and 2 (It will be 1-9)
1+2 != 1-9
James Lawrie commented on 12/08/2008, 17:44:25
the script does not work to extract preg_match...
idrish commented on 16/07/2008, 08:13:45
man... u don't know how much u helped me. Very good tutorial!!
andi commented on 02/05/2008, 01:00:45
when page redirect, script wont be work correctly.