Stefan Rusterholz wrote:
> > http://www.php.net/manual/en/function.gethostbyname.php
> But if I understand this function right, It will only work for URLs like
> http://www.php.net/ - what if the user has a free space from his ISP which
> is located in a subdir like http://www.php.net/users/myhome/?
If you want to check subdirs you have to connect to the URL and look at
You should use gethostbyname to check the domain (use some regular
expressions on the URL) and then try to connect to the server and send a
HTTP request (fsockopen and some other functions).
Then you can check the response for error messages like 404.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]