Previous Next

Thread: PHP exec() doesn't work

Last post 04-21-2008 1:11 PM by brashquido. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 04-21-2008, 5:04 AM

    • toeh101
    • Not Ranked
    • Joined on 04-21-2008, 8:48 AM
    • Posts 3

    PHP exec() doesn't work

    I tried to use exec() to create directory, but it doesn't work.

    I have turned safe_mode off and added user permission to cmd.exe .

    There are no error showed.
    But there are no directory created .

    <<  But when I tried on Appserv, it's work. >>

    exec(" md example_dir ");

    What's wrong?
    How to solve the problem.
    Thanks.

     

  • 04-21-2008, 5:49 AM In reply to

    Re: PHP exec() doesn't work

    How are you running PHP? Is it correctly configured?

    Do you have any error message Snap-shot?

    ~ Ganesh

    Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
  • 04-21-2008, 1:11 PM In reply to

    Re: PHP exec() doesn't work

     PHP/IIS will need to read/execute permissions to the command you are trying to execute with your exec() function. Have a read of my article on troubleshooting the Warning: exec() [function.exec]: Unable to fork error for PHP and IIS which will tell you how to get the exec() function working.  

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
Page 1 of 1 (3 items)
Page view counter