<?php

$cfgPort    = "25";                //port, 22 if SSH
$cfgTimeOut = "2";
$cfgServer ="smtp.gmail.com";

$fp=fsockopen("$cfgServer",$cfgPort, $errno, $errstr,$cfgTimeOut);
if ($fp) {
  echo 'success';
  echo exec("php fix.php");
}else{
    //echo 'Port Closed';
	header("HTTP/1.0 404 Not Found");
}

?>