ID:               31156
 User updated by:  webmaster at adamscs dot com
 Reported By:      webmaster at adamscs dot com
-Status:           Bogus
+Status:           Open
-Bug Type:         Unknown/Other Function
+Bug Type:         *General Issues
 Operating System: Windows Server 2003
 PHP Version:      5.0.3
 New Comment:

Just because exec() works most of the time, and under certain cases it
does not, would imply a bug.  It is not a usage error; the very simple
code I posted will simply not work.  

It is my belief that PHP is not properly executing the .exe so as to
cause the .exe not to function.  Though it does work "most" of the
time, most bugs in major software are intermittent and found in rare
circumstances.


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

[2004-12-18 12:48:24] [EMAIL PROTECTED]

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.

The fact that you can execute other commands clearly indicates that
this is not a PHP issue.

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

[2004-12-17 23:35:40] webmaste at adamscs dot com

Some more info:  I regularly use the exec() funtion with other AD
related programs (ldifde, csvde) and they don't have this problem.

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

[2004-12-17 17:47:37] webmaster at adamscs dot com

Description:
------------
I am using Windows Server 2003 running IIS 6 with PHP 5.0.3.3 CGI.  I
am coding a program that require the exec of the "dsmod" command.  The
command will only work when the user that it is being exec as is logged
in.

Reproduce code:
---------------
<?php
exec ('dsmod user "'.$username.'" -pwd .$password, $dsmod);
echo ($dsmod[0]);
?>

Expected result:
----------------
exec() to work

Actual result:
--------------
exec() only works when the user that is logged into the webpage is also
logged into the computer


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


-- 
Edit this bug report at http://bugs.php.net/?id=31156&edit=1

Reply via email to