PHP + JAVA + C Shell

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
idan_cn
Forum Newbie
Posts: 1
Joined: Sat Jun 28, 2008 6:14 am

PHP + JAVA + C Shell

Post 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?
Post Reply