how to run a C++ .exe file on server through a hyperlink using php?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tabinda

    how to run a C++ .exe file on server through a hyperlink using php?

    how to run a C++ .exe file on server through a hyperlink using php? I want the c/c++ .exe files to run on the server through a hyperlink.
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    use system() or exec() calls.

    Becareful!!! Do not put a variable (like a file name) directly into these functions from the file name. Huge Security hole. Always check to make sure that you're executing the right file by checking the filename, location, and sanitize the URL variable.


    Dan

    Comment

    Working...