Page 1 of 1

PHP + JAVA + C Shell

Posted: Sat Jun 28, 2008 6:20 am
by idan_cn
I have a PHP file with the next 2 commands:

Code: Select all

$output = shell_exec('javac WriteTextFileExample.java > errors.txt');
$output = shell_exec('java WriteTextFileExample')
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?