Hmmmm ok. At the moment I have a line of code like this:
$sock = fsockopen("www.site.co.uk", 80, $errno, $errstr, 30);
when calling !$sock I only avoid an error when the URL doesn't point at a specific page. i.e. www.site.co.uk is fine but www.site.co.uk/index.html returns an error, even if it...