or you could do it proply because as far as i can see EasyTec's code is not going to work, as at no point it acctualy sees if the connection is open, and it also doesnt need the exit; because it will get to the } and exit. Also a real coder would use an elseif or even an else rather than 2 ifs. This is how i would do it.
Code:
<?php
$place = "SITE NAME GOES HERE":
$fp = fsockopen($place, 80, $errno, $errstr);
if (!$fp) {
require_once('error.php');
} else {
require_once($place . '/place.php');
}
?>
Make sure that the other host has fsockets open because many disable them