Mr Nick Posted August 13, 2010 Share Posted August 13, 2010 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 . . . Quote Link to comment https://forums.phpfreaks.com/topic/210679-exec/ Share on other sites More sharing options...
.josh Posted August 14, 2010 Share Posted August 14, 2010 try putting $run in single quotes. Quote Link to comment https://forums.phpfreaks.com/topic/210679-exec/#findComment-1099059 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.