";
$fp1= fsockopen("www.google.com",80);
$fp2= fsockopen("ssl://www.google.com",443);
$fin=fopen("php://input","r");
if( $fin==FALSE){
echo "Failed! Could not open input stream";}
if( $fp1==FALSE){
echo "Failed! Could not connect to google.com:80 allow_open must be on in php.ini";}
if( $fp2==FALSE){
echo "Failed! Could not connect to google.com:443 allow_open must be on in php.ini ";
echo "SSL support not enable : Openssl may not be installed . fsockopen failed for ssl://";
}
if($fp1!=FALSE && $fp2!=FALSE && $fin!=FALSE){
echo "Successfull !! Your server is perfect to run .....:";
}
echo "Following are the details information about your PHP server...