PHP + JAVA + C Shell
Posted: Sat Jun 28, 2008 6:20 am
I have a PHP file with the next 2 commands:
When i run the PHP through SSH connection with Putty it's working perfectly, but when i run the .php file with the browser, i'ts not working, and errors.txt is not created.
What could be the problem?
Code: Select all
$output = shell_exec('javac WriteTextFileExample.java > errors.txt');
$output = shell_exec('java WriteTextFileExample')What could be the problem?