I am able to directly call control panel applets using the command prompt i.e. "control desk.cpl". The problem is that when using php or even javascript to run the command the applet never appears. I have tried running a batch file to execute the command. I have tried using CALL. It works properly when I use the PHP CLI to run it but when I run the PHP CLI from a PHP page I still have the same problem. I have tried exec(), system(), passthru(), shell_exec(), all with the same result. I would greatly appreciate any help or if anyone knows of another way to open control panel applets from a browser.
exec('control desk.cpl');
Thanks
Note: This will be hosted and accessed on the local machine.
Calling XP control panel applets from php
Moderator: General Moderators
Seems your PHP script would need an absolute path to the program (not sure what that would be).
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
The php-cgi.exe and obviously control.exe are in the PATH. The bat file resides in the same directory as the php page it is being run from, although I have tried specifying the complete path with no results.scottayy wrote:Seems your PHP script would need an absolute path to the program (not sure what that would be).