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.
Not a member yet? Click here to register.
Forgot Password?

Php in a panel?

Asked Modified Viewed 6,508 times
S
SoulEater
S
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
asked
Junior Member

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"
0 replies

2 posts

B
Basti
B
Basti 10
[PHP-Fusion Crew Member & Admin from June 2008 - December 2010]

http://basti2web.de - Support Site for my infusions
  • Veteran Member, joined since
  • Contributed 1,099 posts on the community forums.
  • Started 32 threads in the forums
answered
Veteran Member

and how does your code look like? ...
0 replies
S
SoulEater
S
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
answered
Junior Member

<?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>';
?>
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 2 posts
  • Votes 0 votes
  • Topic users 2 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet