[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
> Here's the basic idea.
> You have a machine on an internal LAN that has a webserver and PHP
> 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?
download one already written.
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
Size: 189 bytes
Desc: not available
Url : http://tux.oclug.on.ca/pipermail/oclug/attachments/20021004/20c8d1f1/attachment.bin
More information about the OCLUG