How do i open a .exe file from php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SSG001
    New Member
    • Oct 2007
    • 110

    How do i open a .exe file from php

    How do i open a .exe file from php where .prg file
  • harshmaul
    Recognized Expert Contributor
    • Jul 2007
    • 490

    #2
    you need to use content disposition to get it to the user. or enable the user to download it.

    and then run it on the clients machine with a content disposition bat file. and that will only work if the client is on a windows machine.

    Comment

    • ronverdonk
      Recognized Expert Specialist
      • Jul 2006
      • 4259

      #3
      Please remember to provide a meaningful Title for any threads started (see the FAQ entry Use a Good Thread Title).

      This helps to ensure that other members, and also the general public, will have a better chance of finding answers to any similar questions.

      MODERATOR

      Comment

      • Atli
        Recognized Expert Expert
        • Nov 2006
        • 5062

        #4
        Hi.

        What exactly do you want to do with that EXE file?

        Do you, as harshmaul suggested, want this to be executed on your client's computer?
        Or do you want a program executed on your server?
        Or something else that I'm not seeing?

        What have you tried so far?
        Can we see what you have tried?

        Comment

        • SSG001
          New Member
          • Oct 2007
          • 110

          #5
          Actually i want to give prin to the user on dot matrix printer
          so i want to convert my mysql tables to csv files and download the file in the particular folder on the clients machine when the print button is clicked and then open the exe so that user can directly choose the option and print from the exe which will have csv files converted to required format







          Thanks in advance

          Comment

          • harshmaul
            Recognized Expert Contributor
            • Jul 2007
            • 490

            #6
            You can use php and such to echo out what you want the user to be able to print. and then print using javascript.... like this....

            Code:
            window.print();

            Comment

            • SSG001
              New Member
              • Oct 2007
              • 110

              #7
              I cannot use that since i'm going print on the dot matrix

              and there bold and all such enhancements will not be shown correctly

              Comment

              Working...