[oclug] OT: PHP exec graphical app

Rod Giffin rod at giffinscientific.com
Sun Oct 6 13:08:28 EDT 2002


On Sunday 06 October 2002 11:50 am, David A. Gervais wrote:
> >Implement a calculator in javascript
>
> I can't do that for two reasons.  Xcalc was just an example and I don't
> have the option to use javascript.
> I probably should have mentioned that in my first post.

So, what you want to do is find a way to securely execute arbitrary graphical 
applications in an XWindows session by clicking on a link in the browser?  
This is not exactly trivial if you want to do it yourself, and I doubt PHP 
and a web server is the way to do it.  (In fact, considerable effort goes 
into web servers to prevent this.)  That being said, it is not impossible, 
just not via the method you appear to want to use.

Check out how Konqueror works when used to browse the file system.  Is that 
what you're looking to do?  If so, look into the KDE or Gnome projects to see 
how they implement CORBA, IPC or RMI (the technologies that are used to 
launch an application via a signal from another application.)

Rod.



More information about the OCLUG mailing list