Hi, I have a shell script that could help to bring up a Java GUI application from a Unix machine. I really want to know how to embedded this script in HTML using PHP so I could lauch this Java application from the web. Thanks a lot for your help, Quynh
You can use exec() to run a shell script.
exec('shell_script.sh');
or use passthru() if you need to return data back to PHP.
Hi David, Thanks for your reply. Currently, my workstation doesn't have PHP enable yet. I tried to work on this with a sys-admin. In a mean time, would it work if I use exec() inside a html page? Thx, Quynh
No, you cannot execute programs on the server with HTML.