Executing a java program via php
Posted: Mon Aug 11, 2008 4:16 pm
Hello,
How do I launch a java program from PHP. I tried the following from a webpage and get no error but it did not launch the progran.
$param = "\\\\usbocc00001srv\\ftp\\rtt\\file1.gzz"
$str = "java -Xms256m -Xmx512m -jar \\\\usbocc00002srv\\P.JAR $param"
$out= exec($str);
I can execute this program from the windows prompt.
Thanks in advance for any help
How do I launch a java program from PHP. I tried the following from a webpage and get no error but it did not launch the progran.
$param = "\\\\usbocc00001srv\\ftp\\rtt\\file1.gzz"
$str = "java -Xms256m -Xmx512m -jar \\\\usbocc00002srv\\P.JAR $param"
$out= exec($str);
I can execute this program from the windows prompt.
Thanks in advance for any help