PCSpectra wrote: I used the exec(), shell_exec(), passthru() and system() function to run the java and other external but none of it works.
Why doesn't it work, or do you not know?
I really dont know, Im new in PHP and I never used those function yet.
PCSpectra wrote:
I would guess that those functions are only good for invoking shell script or similar CLI utilities. Lauching an applicaiton that reuqire a desktop/window manager or whatever it's called in Linux. Hmmmm. Maybe the process control functions in PHP?
http://ca.php.net/pcntl
Yeah, I also thinks that those functions can only work on basic shell script.
PCSpectra wrote:
How do you launch Window'ed applications from linux command line normally? Do you need to start the XWindows/KDE/GNome servers first?
I've often wondered hos this worked under linux so hopefully someone else chimes in.

If you want to execute an application using the shell, you will just type in the name of the application (but if its set in the bin) ex. If you want to run the firefox, you will just type the firefox and then the mozilla firefox will pop up, so I thought if I do that in those function it will have the same output but its not. You can also run the java program in the shell using the command for ex. "java myJavaProgram" or execute its jar. But it all wont work in those file function.
panic! wrote:
Why not use php to get the data from the database
Yeah, I know it would be easier to do that, but this project tends to make a prototype that will allow PHP to run and use a Java Program that it can be use in so many ways. Well, as I see and from your reactions and suggestions, I think my prototype is a failure.
Anyways, thanks for your responses, I hope there can be other that can help me out here.
I know it would be not that hard, its just a one simple command.
