Exec & IIS problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • shahid.juma@gmail.com

    Exec & IIS problem

    Hi,


    I have an exe that I want to run with php. In the console, it works
    perfectly fine.


    There is a problem with security and it doesn't seem to run. I have
    tried the following after reading various newsgroups and websites and
    no luck.


    1) Put the Exe file in the wwwroot and set permissions to the IUSER,
    giving Read&Execute, even gave Full Control.
    2) I also added Everyone too and still no luck
    3) Moved the exe file to system32 folder and did the same above and
    still no luck


    Any ideas? Any help would be greatly appreciated.


    Shahid

  • Steve

    #2
    Re: Exec & IIS problem

    [color=blue]
    > I have an exe that I want to run with php. In the console, it works
    > perfectly fine.[/color]
    [color=blue]
    > There is a problem with security and it doesn't seem to run. I have
    > tried the following after reading various newsgroups and websites and
    > no luck.[/color]

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

    ---
    Steve

    Comment

    • Andy Hassall

      #3
      Re: Exec &amp; IIS problem

      On 12 Oct 2005 12:34:39 -0700, shahid.juma@gma il.com wrote:
      [color=blue]
      >I have an exe that I want to run with php. In the console, it works
      >perfectly fine.
      >
      >There is a problem with security and it doesn't seem to run. I have
      >tried the following after reading various newsgroups and websites and
      >no luck.
      >
      >1) Put the Exe file in the wwwroot and set permissions to the IUSER,
      >giving Read&Execute, even gave Full Control.
      >2) I also added Everyone too and still no luck
      >3) Moved the exe file to system32 folder and did the same above and
      >still no luck
      >
      >Any ideas? Any help would be greatly appreciated.[/color]

      Example code?
      What were you trying to run?
      What was the return code?
      --
      Andy Hassall :: andy@andyh.co.u k :: http://www.andyh.co.uk
      http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

      Comment

      • shahid.juma@gmail.com

        #4
        Re: Exec &amp; IIS problem

        Here is what I am doing:

        <?
        //echo exec('whoami');
        //echo "<BR><BR>";
        //echo exec('Encryptio n.exe s PublicKey.xml') ;
        ?>

        <?php
        $output = `Encryption.exe s PublicKey.xml`;
        echo $output;
        ?>

        Where Encryption.exe is a console application built using .NET. This
        by itself works perfectly fine on command prompt.

        Shahid

        Comment

        Working...