slay Posted July 24, 2008 Share Posted July 24, 2008 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 More sharing options...
stelthius Posted July 24, 2008 Share Posted July 24, 2008 you want a script to make the server reboot is that what your saying in short ? Link to comment https://forums.phpfreaks.com/topic/116315-exec-server-restart-page/#findComment-598112 Share on other sites More sharing options...
trq Posted July 24, 2008 Share Posted July 24, 2008 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. Link to comment https://forums.phpfreaks.com/topic/116315-exec-server-restart-page/#findComment-598117 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.