Newbie- Server Check

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

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

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

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.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests