![]() |
|
|
+ Search |
![]()
|
Aug 16th, 2004 08:32
Ayse Geertsma, Den Gunn,
There is a difference between valid URL’s and existing URL’s. To check if a URL is valid, you should dig into this: http://www.netspace.org/users/dwb/url-guide.html And then look into “Regular Expression Functions” (http://www.php.net/preg_match) or write a simple parser. If it’s about an existing URL you should try and catch the content. There might be some complications but you should look at: http://www.php.net/manual/en/function.fsockopen.php or http://www.php.net/manual/en/ref.curl.php or http://www.php.net/manual/en/function.file-get-contents.php