Running a Windows Executable from the file server within a PHP webpage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wayneirwin
    New Member
    • Jun 2013
    • 2

    Running a Windows Executable from the file server within a PHP webpage

    I have an existing website and want to run not download a Windows executable file (thus only on Microsoft OS), but would like it to execute regardless of the users browser version. i.e. Chrome, Firefox, Internet Explorer, Etc. My entire site is written in PHP, with the exception of the executable and its associated files. If someone could show me an example of this supposedly simple block of code, I would be forever indebted. Thank you
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    You want to run an executable on the client's computer from a website? You can't do that. It's too much of a security risk to allow remote execution of code.

    Comment

    • wayneirwin
      New Member
      • Jun 2013
      • 2

      #3
      Thank you, that was pretty much the conclusion I had derived, but just wanted to ask and see what others had to say.

      Comment

      • rantrave13
        New Member
        • Jun 2013
        • 2

        #4
        If you want php to run an exe file, you cant use exec function

        Code:
        <?php
        
        exec("C:\\windows\system32\notepad.exe");
        
        ?>
        somethin like that

        Comment

        • Rabbit
          Recognized Expert MVP
          • Jan 2007
          • 12517

          #5
          Note that this runs on the server, not the client.

          Comment

          Working...