PHP Running Apps

Posted by Goldfiles, 09-09-2008, 09:31 PM
I have a dedicated LAMP server at my house for personal use. I'd like to write a PHP script that will run a .exe file on my server's desktop. For example, if I run script.php, I may want it to open a game of solitaire on my server's desktop. Does anyone know of any tutorials or references to get me started?

Posted by meb124, 09-09-2008, 11:26 PM
try (in php) something like; exec("c:\windows\system32\sol.exe"); word of caution....be careful with scripts that use the command line, you could be opening up a world of security problems, et cetera, on a web server.

Posted by shellcrash, 09-10-2008, 05:00 PM
Definitely consider the security implications. PHP and the command line needs some caution.

Was this answer helpful?

 Print this Article

Also Read

Best PHP Editor ?

Posted by SunShellHosting, 03-01-2010, 12:58 PMHi there! I was wondering, what is the best php...

How turn off allow_url_fopen and short_open_tag in PHP4/5 - module CGI

Posted by KamilPRO, 07-15-2007, 04:14 PMHow turn off allow_url_fopen and short_open_tag in PHP4/5...

Passive FTP Port Range Server 2008 Firewall

Posted by stooley, 04-21-2009, 09:13 AMDo you still have to add each port individually to Server...

I doubt anyone can help, but here goes....

Posted by worldveil, 09-12-2007, 11:04 PMHi all, I doubt that anyone can solve this, but here...

Looking for a Shell Script! :)

Posted by dwscenter, 01-14-2008, 01:25 AMFirst off I want to apologize if I posted this in the...