Jump to content

exec server restart page


slay

Recommended Posts

ok my script currently looks like this:

 

<?

$haloded = "C:\Halo Server";

?>

<?

string exec ( string $haloded  [, array &$output ] )

?>

 

I get this error:

 

Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\haloded.php on line 5

 

I am trying to make a script to open up the halo dedicated server control panel so I dont have to use VNC but i keep getting these errors  :chomp:

 

HELP!

Link to comment
https://forums.phpfreaks.com/topic/116315-exec-server-restart-page/
Share on other sites

This....

 

string exec ( string $haloded  [, array &$output ] )

 

is not valid php. Looks like a function description copied from the manual.

 

<?php

$haloded = "C:\Halo Server"; 
exec ($haloded);

?>

 

Should suffice. However, this will attempt to open a window on the server, it is not going to help you with your VNC issue.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.