Ask about general coding issues or problems here.
2 posts • Page 1 of 1
- New php-forum User
- Posts: 34
- Joined: Wed Dec 25, 2002 6:04 am
- Location: The Netherlands
Code: Select all
$server = "hostlive.co.uk";
$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 "hostlive.co.uk" 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.
Who is online
Users browsing this forum: Bing [Bot] and 5 guests