Hi,
I'm making a script to list links and want to integrate a way bad links are automatically removed.
e.g. http://www.864skjhljfjhvkbuyrf.com will not exist. (Probably!)
Is there a php function which can help me determin whether a URL works or not?
You might want to look at: [man]get_headers[/man].
http://www.php.net/fsockopen on port 80 might help
Cheers folks I will try both methods.
I tried fsockopen but for URLS it didnt work..
e.g. http://www.mysite.com/folder
But just
www.domain.com worked.
May be I need to parse it some how.