$port=80;//this is the standard web port, you can tailor this to fit your needs
$ip=111.111.111.111; //insert your ip here
$fp = fsockopen ($ip, $port, &$errno, &$errstr, 30);
if (!$fp) {
echo "port ".$port." at ".$ip."is not open"; //you can pass your header info here instead
} else {
echo "port ".$port." at ".$ip."is open, congrats"; //you can pass your header info here instead
}
you can replace the echo statements with
header("location1.php");
to make the reroute. i hope this helps. i am a bit confused, however.
is this right->you have a webcam on your personal computer which takes a picture every so often and you are using that picture on your web site (www.yoursite.com or something) like this
..html page on www.yoursite.com...
<img src="111.111.111.111/newpicture.jpg">
where 111.111.111.111 is the computer with the webcam on it
if you have the webcam computer set up as a web server, which i am assuming you do, then my script should work. i am guessing that you dont want a broken image when you have your webcam computer turned off, right??
hope this helps
stuart