[oclug] OT: PHP exec graphical app

Michael P. Soulier msoulier at storm.ca
Fri Oct 4 18:04:31 EDT 2002


On 04/10/02 David A. Gervais did speaketh:

> Would any of you know of a secure way to let a PHP script exectue an X
> application?
> 
> Here's the basic idea.
> 
> You have a machine on an internal LAN that has a webserver and PHP
> installed.
> You are running X with no window manager and a stripped down web browser as
> your only interface.
> You want to execute Xcalc and have it display on this same machine by
> clicking a link on a webpage that is hosted on the same computer.
> If it helps any, this is a Redhat 7.2 box with all recent updates.
> 
> If any of you know of a website that explains how to do this, it would be
> greatly apreciated.
> 
> Best regards,

    The safest way would be to actually initiate this from the client side. 

ie. ssh -X webserver xcalc

    Assuming xauth is all set up between the client and server, it might be
possible to do what you're talking about safely, but why would you want to?
Implement a calculator in javascript if you want to embed one in the page, or
download one already written. 

    Mike

-- 
Michael P. Soulier <msoulier at storm.ca>, GnuPG pub key: 5BC8BE08
"...the word HACK is used as a verb to indicate a massive amount
of nerd-like effort."  -Harley Hahn, A Student's Guide to Unix
HTML Email Considered Harmful: http://expita.com/nomime.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://tux.oclug.on.ca/pipermail/oclug/attachments/20021004/20c8d1f1/attachment.bin


More information about the OCLUG mailing list