Jump to content

exec()


Mr Nick

Recommended Posts

I'm trying to open a batch file in php with these contents:

@echo off
java -classpath rscd.jar;lib/mina.jar;lib/xpp3.jar;lib/slf4j.jar;lib/xstream.jar;lib/hex-string.jar; org.rscdaemon.server.Server
pause

 

My PHP code is simply

$run = "C:\\Users\\Zorian\\Desktop\\EasyRSC\\Server\\run-win.bat";
echo exec("cmd.exe /c " . $run);

 

It should open up a java applet, instead it just echos:

Press any key to continue . . .

Link to comment
https://forums.phpfreaks.com/topic/210679-exec/
Share on other sites

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.