I have tried posting in PHP forum but no reply. I think it's not a problem with PHP anyway so perhaps someone in this forum can help.
When I use the code below to try and launch notepad.exe from within a PHP script using the exec() function, I can see the process has been added to the process list (from task manager) but notepad hasn't started! The process cannot be forced to quit either.
The exec() function seems to work but I want the application to launch properly - is there a trick when using the command prompt to having a programme actually launch, as compared to just having the process start?
[CODE=php]
$cmd='notepad.e xe'
exec($cmd);
[/CODE]
My system is: win2k pro, apache 2, php 5.2
Thanks!
When I use the code below to try and launch notepad.exe from within a PHP script using the exec() function, I can see the process has been added to the process list (from task manager) but notepad hasn't started! The process cannot be forced to quit either.
The exec() function seems to work but I want the application to launch properly - is there a trick when using the command prompt to having a programme actually launch, as compared to just having the process start?
[CODE=php]
$cmd='notepad.e xe'
exec($cmd);
[/CODE]
My system is: win2k pro, apache 2, php 5.2
Thanks!
Comment