What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » is the server online using php

is the server online using php
Author: Message:
Jarrod
Veteran Member
*****

Avatar
woot simpson

Posts: 1304
Reputation: 20
– / Male / Flag
Joined: Sep 2006
O.P. is the server online using php
well i have a shoutcast server running on my pc it's all working with port fowarding and stuff  but i want to use some php to test if the port is open or closed(running or shutdown)
using https://www.grc.com i have seen that their script does just what i want but i'm looking for some php to do something similar,
i found this
code:
<?
$ip = "http://247.212.233.220"; // IP Here
$port = 8000; // Port Here
if(fsockopen($ip, $port, $errno, $errstr, '10'))
echo "The  server is <font color='green'>Online</font>!";
else
echo "The  server is <font color='red'>Offline</font>!";
?>

but even if the port is open and https://www.grc.com says it's open the php script says it closed can some one help?

[Image: 5344.png]
[Image: sig.png]

A.k.a. The Glad Falconer














06-05-2008 08:53 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
is the server online using php - by Jarrod on 06-05-2008 at 08:53 AM
RE: is the server online using php - by Menthix on 06-05-2008 at 09:06 AM
RE: is the server online using php - by Jarrod on 06-05-2008 at 09:26 AM
RE: is the server online using php - by Menthix on 06-05-2008 at 09:31 AM
RE: is the server online using php - by Jarrod on 06-05-2008 at 09:48 AM
RE: is the server online using php - by Eljay on 06-05-2008 at 09:50 AM
RE: is the server online using php - by Jarrod on 06-05-2008 at 10:15 AM
RE: is the server online using php - by Felu on 06-05-2008 at 10:28 AM
RE: is the server online using php - by NanaFreak on 06-05-2008 at 10:35 AM
RE: is the server online using php - by Jarrod on 06-05-2008 at 11:50 AM
RE: is the server online using php - by ipab on 06-05-2008 at 04:29 PM
RE: is the server online using php - by RaceProUK on 06-05-2008 at 06:03 PM
RE: RE: is the server online using php - by segosa on 06-05-2008 at 10:34 PM
RE: is the server online using php - by Jarrod on 06-05-2008 at 11:11 PM
RE: is the server online using php - by RaceProUK on 06-06-2008 at 06:32 PM
RE: RE: is the server online using php - by segosa on 06-07-2008 at 02:53 PM
RE: is the server online using php - by Jarrod on 06-07-2008 at 10:23 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On