<?php
$host = 'domain.tld';
$timeout = 30;
if (($handle = @fsockopen($host, 80, $errno, $errstr, $timeout)) == false)
{
$apache="FEHLER";
}else {
$apache="OK";
@fclose($handle);
}
if (($handle = @fsockopen($host, 443, $errno, $errstr, $timeout)) == false)
{
$ssl="FEHLER";
}else{
$ssl="OK"...