I'm a coder of a server, and when I crash the server I have no way to start it back up unless the host is here. I've been trying to execute the file via PHP, and so far so good. However, with this method, the server is spammed with "Usage: /say " (consolelikechat plugin). From what it seems, when I use the following:
chdir('C:/SERVERS/BUKKIT/');
system('"C:\\Program Files\\Java\\jre7\\bin\\java.exe" -server -Xincgc -Xmx8192M -jar craftbukkit.jar'); ?>
the input of '' is being sent to the server at a very high speed. I have tried using popen and shell_exec, however these do not even start the server. Running it from the .bat file just returns the command. Sorry if this is not clear enough, it is the best I can do to explain the problem.