I'm trying to get exec() to work. It's a completely backend system so no security concerns.
I want a button in my page to launch a programme on my windows system (for example notepad.exe) really just to save me some time. So I tried the following to test this :
[CODE=php]
$cmd='notepad.e xe'
exec($cmd);
[/CODE]
After I run this script, nothing happens! But when I look at the process list on the windows task manager, I can see a new process - notepad.exe running. This process incidentally cannot be forced to quit without a restart.
Can anyone shed any light?
My system is: win2k pro, apache 2, php 5.2
Thanks!
I want a button in my page to launch a programme on my windows system (for example notepad.exe) really just to save me some time. So I tried the following to test this :
[CODE=php]
$cmd='notepad.e xe'
exec($cmd);
[/CODE]
After I run this script, nothing happens! But when I look at the process list on the windows task manager, I can see a new process - notepad.exe running. This process incidentally cannot be forced to quit without a restart.
Can anyone shed any light?
My system is: win2k pro, apache 2, php 5.2
Thanks!
Comment