Loading ...
Sorry, an error occurred while loading the content.

how to run some .exe file using php

Expand Messages
  • birgunj birgunj
    Hello All, i am facing following problem. 1. i have some exe file(for example A.exe). 2. it take input as pdf file and again give output as pdf likeĀ  from
    Message 1 of 1 , Dec 7, 2010
    • 0 Attachment
      Hello All,

      i am facing following problem.

      1. i have some exe file(for example A.exe).
      2. it take input as pdf file and again give output as pdf like  from command prompt.
      for example :- C:\>A.exe "a.pdf" "b.pdf". it perfetcly working from command prompt.

      my problem is that when run through php using passthruor exec command,it gives permission denied error. like this

      passthru('C:\inetpub\wwwroot\pdfsaveagain\PDFSaveAgain.exe "C:\inetpub\wwwroot\pdfsaveagain\1.pdf" "C:\inetpub\wwwroot\pdfsaveagain\2.pdf"');

      PDFSaveAgain.exe is made using Interop.Acrobat.dll file.


      i assign full rights to cmd.exe also but it is not working.

      please anybody has any idea or suggestion,please share with us.

      thanks
      Humayoo

    Your message has been successfully submitted and would be delivered to recipients shortly.