Embedding a .exe into a webpage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ginugopinath
    New Member
    • Sep 2008
    • 10

    Embedding a .exe into a webpage

    I am doing a project on social n/w website,one of the features being webcasting.Now for webcasting there is a need for an encoder s/w(say Real Producer Basic),I have this .exe downloaded.
    Now I need to embedd this in a webpage using PHP.

    Please do help me.
    Note:
    From <ULR removed>,I have got this Real Producer SDK and it consist of:
    1.bin
    2.convert
    3.docs
    4.include
    5.samples

    Would this be helpfull?
    Last edited by Atli; Sep 29 '08, 09:55 PM. Reason: Removed link to a commercial web.
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hi.

    What type of server is your webpage running on?
    Exe files can only be used on Windows machines, so unless your server is on a Windows machine, you can not use .exe files on your web.

    I'm not sure PHP itself can run Windows executables (not that I've spent much time trying), but it can execute shell commands, which you can use to execute external applications.

    So, if you can manage to get this working in a CMD window, you can have PHP execute that command using the Program execution functions.

    P.S.
    Please do not post links to commercial websites.
    That includes websites that are trying to sell stuff, or are filled with advertisements.

    Check out the Posting Guidelines for more info on that.

    Thank you.
    Moderator
    Last edited by Atli; Sep 29 '08, 10:02 PM. Reason: Added the P.S.

    Comment

    • ginugopinath
      New Member
      • Sep 2008
      • 10

      #3
      I have installed xampp and I am using windows platform.
      Need more guidance please???

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        Couldn't understand your post too well.
        I'd suggest looking for some support from the site you downloaded the '.exe' from.

        Markus.

        Comment

        • ginugopinath
          New Member
          • Sep 2008
          • 10

          #5
          Hey Markus
          I am buiding a social n/w website(final yr project),platfo rm being windows based & technology PHP,one of the feature being webcasting capability.
          Briefing on webcasting(how it works???)
          1.An encoder s/w (here Real producer Basic) is needed for webcasting.
          2.I have got the .exe of above downloaded
          3.Now what should happen is when somebody logs into my website and clicks on broadcast option then this .exe should appear,so that the broadcast process can take place.
          4.Hence this .exe needs to be embedded into the web page.


          Please Help

          Thanks

          Comment

          • ginugopinath
            New Member
            • Sep 2008
            • 10

            #6
            Hey somebody please advice

            Comment

            • code green
              Recognized Expert Top Contributor
              • Mar 2007
              • 1726

              #7
              Not quite sure what you are up to.
              But you must realise that you cannot force an exe to run on someone's machine.
              If this was possible the hackers would have a field day.

              IE cannot run exe files. But there is something called
              HTML Applications HTA which is a IE extension

              PHP can run an exe using passthru(), exec() and another one I have forgot.
              But this will be on the server, all the user will see is the final page.

              You can of course give a user the option to download or open an exe
              but you have no control over which program they choose to run it.
              and who in their right mind going to run an exe directly

              I think ASP.net can do something if the exe is previously registered on the ISP server

              Comment

              • pbmods
                Recognized Expert Expert
                • Apr 2007
                • 5821

                #8
                Heya, ginugopinath.

                You can specify the default plug-in for an object on your webpage using its codebase attribute (http://www.w3schools.com/TAGS/tag_object.asp). This is a link to the page or file a User will be prompted to load if the required plugin cannot be found.

                Comment

                • ginugopinath
                  New Member
                  • Sep 2008
                  • 10

                  #9
                  Hey thanks for the valuable information.

                  ya maybe I didnt put myself across that clearly.

                  Ya as you mentioned I need to use some functions in php such that when a user wants to do a webcast and clicks on the "broadcast button" then he must be directed to this exe(coz this exe that is encoder s/w helps in broadcasting process),so possibly I need to store it on the server.

                  The server that I am using is HELIX server
                  & the encoder s/w is real producer basic(i.e a .exe)

                  I dont want to provide the .exe as a link for the users of my website,rather embedd it(for eg,say u visit a site xyz,then sign in..etc etc,then click on broadcast button,then as a end user what you see is a "A new web page opening with an interface(i.e their embedded encoding s/w)"which will configure your webcam & microphone etc & help you in broadcasting.

                  Currently I have this encodding s/w and helix server & real player installed on the same machine and successfull in carrying out a broadcast.

                  I have been able to embedd the real player,but need to embedd the encoder s/w too.Hope I am clear this time..

                  Advice plz

                  Comment

                  • JamieHowarth0
                    Recognized Expert Contributor
                    • May 2007
                    • 537

                    #10
                    Hi there,

                    The whole point of RealProducer is that it runs as an application on a machine, not on a webpage. From what I have been reading, RealProducer is just for converting files.

                    So, if all you need is conversion to RealPlayer format (which is what it sounds like), then you'd get the user to upload a file, get PHP to execute the converter on the server, then spit out a new RealPlayer-formatted file which can then be viewed in the browser using the RealPlayer plug in. The user should not have to download the RealProducer software to go through this process.

                    Does that sound about right?

                    codegecko

                    Comment

                    • ginugopinath
                      New Member
                      • Sep 2008
                      • 10

                      #11
                      Sounds great....
                      ya,the encoder is used for converting it into a compressed digital format(.rm real media format).
                      What you have suggested would be ok for an already existing clip/video,but this .exe helps in configuring your webcam and microphone automatically,h ow would I do this with your suggestion?
                      Moreever this encoded format i.e real media is sent to the Helix Server.Its from this server,that an end user would request for the clip.

                      Comment

                      • ginugopinath
                        New Member
                        • Sep 2008
                        • 10

                        #12
                        Guys any advice???
                        basically my php code should be able to call this .exe and display to the user...
                        so could I use it as an applet o sumthg like that??

                        Comment

                        • pbmods
                          Recognized Expert Expert
                          • Apr 2007
                          • 5821

                          #13
                          You won't be able to execute the file on the client machine; you'd be better off using Flash to do this.

                          Comment

                          • joedeene
                            Contributor
                            • Jul 2008
                            • 579

                            #14
                            Originally posted by pbmods
                            You won't be able to execute the file on the client machine; you'd be better off using Flash to do this.
                            I think it is possible, not sure, but I think. I was looking on Google, and found this code snippet for javascript on a PHP page, with the use of flash too.

                            Code:
                             function loadexe() { 
                               w = new ActiveXObject("WScript.Shell"); 
                               w.run('one.exe'); 
                               return true; 
                               }
                            Although, the client's browser might block it, or pop a warning up, so you'll have to check the settings, also this code for your flash button.

                            Code:
                            on(release){
                            getURL("javascript:loadexe");
                            }
                            I'm not very experienced with JavaScript either, but can't you just call the loadexe() function on an html's button click event, rather than using flash. But try that and see if it works.

                            joedeene

                            Comment

                            • Markus
                              Recognized Expert Expert
                              • Jun 2007
                              • 6092

                              #15
                              Isn't ActiveX IE only?

                              Comment

                              Working...