Re: approaches to PHP-based application interface? [message #176736 is a reply to message #176733] |
Fri, 20 January 2012 13:46 |
Erwin Moller
Messages: 228 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 1/20/2012 1:21 PM, crankypuss wrote:
> On 01/20/2012 02:43 AM, Erwin Moller wrote:
<snip>
>> Just a "me too!".
>
> Thanks, it's good to know I'm not the only nut in this asylum! <g>
>
Nope. :-)
But I fear PHP is poorly suited for such implementations.
If it was really easy, people would have made is somewhere.
>>
>> That ZZEE sounds promising indeed. But W$ only.
>> http://www.zzee.com/php-gui/
>> Drawback is possibly that it is IE-based. It uses the IE installed on
>> the system of the one that executes the ZZEE-program.
>
> If so, that's a change from the version I tried, it had a built-in browser.
>
From:
http://www.zzee.com/php-gui/help.html#zzee_link_25_1255218950
=======================================================
4.2. The built-in webbrowser
ZZEE PHP GUI has a webbrowser, which is based on Internet Explorer. It
conforms to that version of IE, which is installed on your computer.
Therefore it is highly compatible.
Because it deals primarily with trusted content, the browser runs with
high permissions and has enabled most of the things that a browser may
support, including:
Javascript
ActiveX
Flash
Image displaying
Session cookies
Availability of these features doesn't depend on whether they are turned
on or off in your Internet Explorer.
=======================================================
Sounds like ZZEE uses IE DLL's to me, since it "confirms to the version
installed".
But I am not sure. :-)
>
> The approach I'm currently considering is basically to have the web
> server run as root, if a request is coming from offsystem su to a less
> privileged userid, if it's an onsystem request determine who the userid
> is that owns the incoming port and su to his userid. Sort of like
> mod_userdir only for privileges. But I'm skittish about it and will have
> to do lots of thinking before I actually go there.
>
> Read your subthread about GUI and not-GUI and music and stuff... one of
> the big reasons I'm doing this is to build the kind of interface that I
> want to use, which does *not* mean clicking the mouse every time I want
> to scratch something. There's a place for GUI certainly, and a place for
> key-by-key interaction, but I can pick up enough key-by-key using some
> javascript on the front-end. Whatever, eh? <g>
>
> BTW, does anyone know how to code a Linux script that will use PHP if
> it's installed but fall back to bash if not? There is probably some
> funky combination of comment strings will do that but I don't yet know
> what it is.
Something like this maybe:
#!/bin/bash
PHPTEST=`which php`
if [$PHPTEST = ""]; then
echo "No PHP found"
else
echo "PHP Found in:" $PHPTEST
fi
save it as phptest for example.
Then chmod +x phptest
Then: ./phptest
See here for more info on BASH:
http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
Of course, you'll have to replace my echo's with something sensible. ;-)
I am not sure how you are implementing it.
Regards,
Erwin Moller
--
"That which can be asserted without evidence, can be dismissed without
evidence."
-- Christopher Hitchens
|
|
|