Newbie- Server Check

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 9
Joined: Mon Jan 13, 2003 10:33 am

Postby Unknown » Sat Mar 08, 2003 12:15 pm

Why not use Perl???

New php-forum User
New php-forum User
Posts: 34
Joined: Wed Dec 25, 2002 6:04 am
Location: The Netherlands

Postby nick_k » Sat Mar 08, 2003 12:30 pm

Code: Select all




$server = "";
$port = 80;

$fp = fsockopen ($server, $port);

$msg = "your message here";
mail("your email here", "subject here", $msg);
} //end if



very simple script, it attempts to connect to port 80 of "" on port 80, if its unsuccesful, it emails you.
Sorry, but i dont know how you can get the time it takes to connect, but im sure its possible.

Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 2 guests