Execute program php linux
I'm developing a Web Application and I got stuck at this:
I want to create a simple tag that triggers t开发者_StackOverflow中文版he execution of a local program such as gedit, mozilla firefox, etc.
My project is based on HTML, Javascript and PHP.
I'm aware that Javascript doesn't allow this kind of execution, but perhaps PHP does?
Thank you!
PHP code runs on the server; it has no influence over what happens in the web browser. All it can do is generate HTML and Javascript for the web browser to process, it can't take any action on the client machine directly, so no, there's no way to do this.
You can do that with exec() function but the program has beign executed on the server doesnt on the client side
精彩评论