predator50 Posted September 14, 2012 Posted September 14, 2012 First of all good evening. :) I've installed wp on my webhoster everything runs ok...I wanted to add some scripts to my server website. First i installed a plugin named Exec php which should allow php codes in wp. i've wrote a php code as a text widget. <?php print'<table width="150">'; $server = "88.223.84.82"; $portg = "7777"; $portl = "9014"; $timeout = "5"; if ($server and $port and $timeout) { $game = @fsockopen("$server", $portg, $errno, $errstr, $timeout); $login = @fsockopen("$server", $portl, $errno, $errstr, $timeout); } print'<tr><td align="center"><strong>Server Status</strong></td></tr>'; if($login) { print'<tr><td>Login:</td><td><font color="#00FF00"><strong> Online</strong></font><br><br></td></tr>'; } else { print'<tr><td>Login:</td><td><font color="#FF0000"><strong> Offline</strong></font><br><br></td></tr>'; } if($game) { print'<tr><td>Game:</td><td><font color="#00FF00"><strong> Online</strong></font></td></tr>'; } else { print'<tr><td>Game:</td><td"><font color="#FF0000"><strong> Offline</strong></td></tr>'; } print'</table>'; ?> this it shows me up. Offline Server Status Login: Offline Game: Why it shows server is offline?? Ports are opened no firewall and server is definetly online. same happens with other scripts for online/offline. Now im sitting since 2 days on that -.- and i still don't get what im doing wrong. LF help
0 Mhoska Posted September 16, 2012 Posted September 16, 2012 Just used a warp (iframe) take a look on google, it would explain you how to do it.
0 predator50 Posted September 16, 2012 Author Posted September 16, 2012 can you explain it more detailed please? what exactly i have to looking for?
Question
predator50
First of all good evening. :)
I've installed wp on my webhoster everything runs ok...I wanted to add some scripts to my server website. First i installed a plugin named Exec php which should allow php codes in wp. i've wrote a php code as a text widget.
<?php print'<table width="150">'; $server = "88.223.84.82"; $portg = "7777"; $portl = "9014"; $timeout = "5"; if ($server and $port and $timeout) { $game = @fsockopen("$server", $portg, $errno, $errstr, $timeout); $login = @fsockopen("$server", $portl, $errno, $errstr, $timeout); } print'<tr><td align="center"><strong>Server Status</strong></td></tr>'; if($login) { print'<tr><td>Login:</td><td><font color="#00FF00"><strong> Online</strong></font><br><br></td></tr>'; } else { print'<tr><td>Login:</td><td><font color="#FF0000"><strong> Offline</strong></font><br><br></td></tr>'; } if($game) { print'<tr><td>Game:</td><td><font color="#00FF00"><strong> Online</strong></font></td></tr>'; } else { print'<tr><td>Game:</td><td"><font color="#FF0000"><strong> Offline</strong></td></tr>'; } print'</table>'; ?>this it shows me up.
Offline
Server Status
Login: Offline
Game:
Why it shows server is offline?? Ports are opened no firewall and server is definetly online. same happens with other scripts for online/offline.
Now im sitting since 2 days on that -.- and i still don't get what im doing wrong. LF help
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now