FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


make it better sms follow up server test





splash
you can add this on to the sms site to test if the celular provider email gateway is up, to get the nesacary info about your providers adress you must know the email of the phone company (eg 4176741234@tmobile.com) then go to http://www.dnsstuff.com and test the address to get the rest here is the code. i have some other plans like for instance to test the response time of the server and logging all messages sent etc.

Code:

<?php

error_reporting(0);

$host = "provider hostname or ip";

$errstr = "";

$errno ="";

$i = 25;

    $fp = fsockopen($host,$i,$errno,$errstr,30);

    if($fp)

    {    echo "<strong><font color=\"#008000\">Online </font></strong><br />";

        fclose($fp);

    }

    else

    {

        echo "<strong><font color=\"#FF0000\">Offline</font></strong>";

    }

    flush();

//end for

?>


to preview the site you can vist [url]foneatics.idohost.com/sms[/url]
Related topics
problem with internet explorer
Job that u wouldn't mind doing for the rest of your life
Yo mama so fat...
My Internet Explorer keeps crushing.
Problems With Cron Jobs
SUSE Linux 10 apache installation
What is a site without tables?
Tell Us your Rig!!!
Spell Check
flash
is Server 1 better than Server 2?
server satatus in accont page
frihost-server-test.gif
[Important]Server 2/3 move
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.