exec, shell_exec, system, and passthru not working at all

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bgeneto

    #1

    exec, shell_exec, system, and passthru not working at all

    Can't get these commands to work! The following page simply doesn't
    finish loading ( Waiting... Opening... :-( )

    <?php echo system("dir"); ?>

    The same for <?php echo exec("dir"); ?> or <?php echo
    shell_exec("dir "); ?>, etc...

    I'm running Apache 2.0.55 & PHP 5.0.5 with Zend Optimizer v2.5.10 on
    windows XP SP2. Any help is welcome,

    TIA,

    Bernhard.

    PS: I have also tried the windExec() user function sugested in
    php.net/manual.

  • Steve

    #2
    Re: exec, shell_exec, system, and passthru not working at all

    [color=blue]
    > Can't get these commands to work! The following page simply doesn't
    > finish loading ( Waiting... Opening... :-( )[/color]

    See <http://www.php.net/manual/en/features.safe-mode.php>

    ---
    Steve

    Comment

    • Daniel

      #3
      Re: exec, shell_exec, system, and passthru not working at all

      Try the following...
      Find the cmd.exe file in your C:\Windows\Syst em32.exe folder.
      Right click on the file and select "Sharing and Security" or select
      "Properties " and click on the "Security" tab.
      Make sure the IUSR and IWAM accounts have "Read & Execute" access. If
      not you will have add them.
      Daniel

      Comment

      Working...