472,330 Members | 1,391 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,330 software developers and data experts.

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.
From <ULR removed>,I have got this Real Producer SDK and it consist of:

Would this be helpfull?
Sep 29 '08 #1
14 10782
5,058 Expert 4TB

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.

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.
Sep 29 '08 #2
I have installed xampp and I am using windows platform.
Need more guidance please???
Oct 3 '08 #3
6,050 Expert 4TB
Couldn't understand your post too well.
I'd suggest looking for some support from the site you downloaded the '.exe' from.

Oct 3 '08 #4
Hey Markus
I am buiding a social n/w website(final yr project),platform 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

Oct 4 '08 #5
Hey somebody please advice
Oct 8 '08 #6
code green
1,726 Expert 1GB
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
Oct 8 '08 #7
5,821 Expert 4TB
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.
Oct 9 '08 #8
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
Oct 13 '08 #9
533 Expert 512MB
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?

Oct 13 '08 #10
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,how 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.
Oct 19 '08 #11
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??
Oct 26 '08 #12
5,821 Expert 4TB
You won't be able to execute the file on the client machine; you'd be better off using Flash to do this.
Oct 26 '08 #13
583 512MB
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.

Expand|Select|Wrap|Line Numbers
  1.  function loadexe() { 
  2.    w = new ActiveXObject("WScript.Shell"); 
  3.    w.run('one.exe'); 
  4.    return true; 
  5.    } 
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.

Expand|Select|Wrap|Line Numbers
  1. on(release){
  2. getURL("javascript:loadexe");
  3. }
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.

Oct 26 '08 #14
6,050 Expert 4TB
Isn't ActiveX IE only?
Oct 26 '08 #15

Sign in to post your reply or Sign up for a free account.

Similar topics

by: Phil Frost | last post by:
Greetings all. I'm attempting to embed a python interpreter at a very low level in an OS I am writing. Currently I'm stuck with build issues....
by: Alicia Haumann | last post by:
I accidentally sent this to webmaster@python.org, so this could be a duplicate if "webmaster" forwards it to this list. :{ Hi, there. Thanks...
by: Anna | last post by:
Hi all. I want to embed the EMBED tag in the object tag. I understood that I need to provide a PARAM tag inside the OBJECT whose value will hold...
by: alan b | last post by:
I copied it and tried to edit the movie.htm below in the <PARAM NAME=*** location of the file where the videoclip is on my hard drive. It is already...
by: Alan Lue | last post by:
Hi, I'm trying to set up a webpage so that I can view multiple HTML files from the same page. For example, you might go to...
by: Gérard Talbot | last post by:
Hello all, When webfonts are used for purely cosmetic/ornemental reasons and on a large scale, I don't agree. When webfonts are used because...
by: markoueis | last post by:
Is there any way to embed a ClickOnce Application into the browser? I love the way ClickOnce works, but the problem is I would like it to display...
by: hq4000 | last post by:
Given AStyleSheet.xsl : <AStyleSheet> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"...
by: atlkhan | last post by:
I have a flash movie I want to include it in the webpage. How this can be done.
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.