Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Php in a panel?

Can anyone help me add PHP in a side panel? I tried everything I can think of but I keep receiving this same error: "Parse error: syntax error, unexpected T_DNUMBER in C:\xampp\htdocs\themes\templates\panels.php(75) : eval()'d code on line 4"
and how does your code look like? ...
<?php
$server = "127.0.0.1";
$portg = "2000";
$portl = "2000";
$timeout = "5";

if ($server and $port and $timeout) {
$game = @fsockopen("$server", $portg, $errno, $errstr, $timeout);
$login = @fsockopen("$server", $portl, $errno, $errstr, $timeout);
}
if($game) { print'<tr><td>Server Status: </td><td><font color="#FF0000"><strong>Offline</strong></font></td></tr>'; }
else { print'<tr><td>Server Status: </td><td"><font color="#00FF00"><strong>Online</strong></td></tr>'; }
print'</table>';
?>
Thread Information
Author
Replies
3 posts
Views
5,717 times
Last Post
Last updated on 10 years ago
You can view all discussion threads in this forum.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You cannot download attachments in this forum.