execute in the background using system

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
nikosft
Forum Newbie
Posts: 2
Joined: Thu Jun 16, 2005 5:47 am

execute in the background using system

Post by nikosft »

Hi everybody

I am trying to execute a java programme in my php script.
I am using system("java foo"); but the script halts. I have also tried to redirect the output of the java programme using system("java foo > test.txt"); the script doesn;t halt but the java programme is not executed. I have also tried system("java foo &"); but the script still halts.
Can anybody propose any solution?

Thanks in advance
Syranide
Forum Contributor
Posts: 281
Joined: Fri May 20, 2005 3:16 pm
Location: Sweden

Post by Syranide »

Try reading one of the 5 recent posts, I just answered to this question.
Post Reply