![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveRe: Testing if a server is running with almost no permissions
From: Al <alexrussell101@gmail.com>
Date: Thu Jan 12 2006 - 21:00:27 CET
As for the original question... If your server has cURL support, try
I stole this from a firefox XML feed ticker code but here's the basic
<?php
function getResponse($url, $port, $timeout) {
curl_setopt($ch, CURLOPT_URL, $url);
$data = curl_exec($ch);
if ($data === NULL)
return $data;
$infoFromSite = getResponse("http://www.example.com/", 80, 25);
echo
?>
|