how to execute DOS command thru PHP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nishac
    New Member
    • Nov 2006
    • 22

    how to execute DOS command thru PHP

    friends
    i am trying to execute a dos command through php..How can i do this?Is the exec() enough or it works only for Unix commands.Please help.It is very urgent.
  • Draicone
    New Member
    • Dec 2006
    • 2

    #2
    exec() (or it's more useful sibling shell_exec()) will work on whatever system using whatever command prompt as available under whatever user apache is running as.

    Comment

    Working...