Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #31743 : Shell_exec function problem with IIS
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 7th March 18:57
php-bugs
External User
 
Posts: 1
Default #31743 : Shell_exec function problem with IIS



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
  Reply With Quote


  sponsored links


2 7th March 22:31
php-bugs
External User
 
Posts: 1
Default #31743 : Shell_exec function problem with IIS



From: tril2632 at hotmail dot com
Operating system: Win 2000 Pro
PHP version: 5.0.3
PHP Bug Type: IIS related
Bug description: Shell_exec function problem with IIS

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 bug report at http://bugs.php.net/?id=31743&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31743&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31743&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31743&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31743&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31743&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31743&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31743&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31743&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31743&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31743&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31743&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31743&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31743&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31743&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31743&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31743&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31743&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31743&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31743&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31743&r=mysqlcfg
  Reply With Quote
3 7th March 22:33
External User
 
Posts: 1
Default #31743 : Shell_exec function problem with IIS


ID: 31743
Updated by: pollita@php.net
Reported By: tril2632 at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: IIS related
Operating System: Win 2000 Pro
PHP Version: 5.0.3
New Comment:

Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.

Thank you for your interest in PHP.

Ask yourself this question:

"What does that command output?" I'm not referring to the action of the
window opening, but to the result returned from running that command at
a command prompt.

Now ask yourself:

"Does the data (hint: or lack thereof) evaluate to TRUE or FALSE?"

"Under what conditions does the right-hand side of an OR operator
execute? When the left-hand evaluates to TRUE or FALSE?"


Previous Comments:
------------------------------------------------------------------------

[2005-01-28 16:23:48] tril2632 at hotmail dot com

PS : with apache you must enable the service to interact with desktop
in order to work !!!

------------------------------------------------------------------------

[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
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666