controllaPCseUP.php :

<!– PAGINA RESIDENTE SUL SITO TuoSito.org–>
<form action=’http://prova.no-ip.org/okServer.php?hola=vai’ method=’POST‘>
<input type=’submit’ value=’Controlla’>
</form>

<?php
[email protected]$_GET[‘cista’];
if(@isset($cista)){
echo “UP”;
}else{
echo “OFF”;
}
?>

okServer.php :

<?php // FILE RESIDENTE SUL PC (SERVER) prova.no-ip.org.
$hola=$_POST[‘hola’]; // POST
if(isset($hola)){
header(“location: http://TuoSito.org/controllaPCseUP.php?cista=OFF”);
}else{
header(“location: http://TuoSito.org/controllaPCseUP.php?cista=ON”);
}
?>