#31743 [Opn]: Shell_exec function problem with IIS
| From: | tril2632 at hotmail dot com | Date: | Fri, 28 Jan 2005 15:23:49 +0000 |
| Subject: | #31743 [Opn]: Shell_exec function problem with IIS | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-72985@lists.php.net to get a copy of this message | ||
ID: 31743
User updated by: tril2632 at hotmail dot com
Reported By: tril2632 at hotmail dot com
Status: Open
Bug Type: IIS related
Operating System: Win 2000 Pro
PHP Version: 5.0.3
New Comment:
PS : with apache you must enable the service to interact with desktop
in order to work !!!
Previous Comments:
------------------------------------------------------------------------
[2005-01-28 16:09:00] tril2632 at hotmail dot com
Description:
------------
Hello
It's a mysterious problem.
When I try to execute my code I get the message "error" display so the
OR DIE message is printed BUT there is no error, my excel file is open
and everything work, so the function shouldn't execute the message in
"or die" because everything work !!!
I had to remove the OR DIE ('error'); in my code because php was
stopping the script but he shoul not !
Reproduce code:
---------------
shell_exec('cmd /C start c:\remarques.xls') OR DIE ('error');
Expected result:
----------------
My excel file should open.
Actual result:
--------------
The file is open, it's ok but PHP execute the message in the "OR DIE"
and he sould not because it works !!! there was no error !!!
And with apache 1.3.33 there is another problem with my code : the page
load indefinitely without anny error in the error log etc of apache !!!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31743&edit=1