View Complete Thread
  • IIS6 win 10 cmd

    May 28, 2019 11:14 AM|AndreySignet|LINK

    Greetings! I use IIS to run my localhost. I have a form on the website where a user enters some data, then PHP gets these data and should run Python script. To run it I try to use following commands:

    <?php

    shell_exec("python script_folder/test.py");

    ?>

    and 

    <?php

    exec("python script_folder/test.py");

    ?>

    but nothing happens. Python script is trivial:

    import time  

    print("It works!")

    time.sleep(3)

    I guess there is an issue with permissions. Possibly a user that connects website doesn't have privilege to use cmd.

    Could you please help how to proceed?