windows distribution proposal
| From: | simon at firepages dot com dot au | Date: | Sun, 04 Jul 2004 14:47:30 +0000 |
| Subject: | windows distribution proposal | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-4698@lists.php.net to get a copy of this message | ||
Just tried tulip , v v nice BTW! ,
but it brings back the old how to distribute on win32 without distributing
the php binaries/modules with each app question. , esp when peeps already
have PHP installed for apache/whatever.
I think its been generally agreed before that we need a deployment system.
I was playing with rebol (http://www.rebol.com)
Rebol sets up its own protocol to launch the interpreter
This works just as well for PHP ...
............................................................................
.......................
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\phpx]
@="\"URL:PHP Protocol\""
"URL Protocol"="\"\""
[HKEY_CLASSES_ROOT\phpx\shell]
[HKEY_CLASSES_ROOT\phpx\shell\open]
[HKEY_CLASSES_ROOT\phpx\shell\open\command]
@="F:/phpdev/php/php-4.3.4/php.exe -q -c f:/gtkdev/php.ini.4.3.4 -f
e:/phpdev/www/strapper.php %1"
............................................................................
..........................
It has the advantage of
allowing you to run php-gtk apps on-click from within web-pages ala .NOT <a
href="phpx://my_users">add user</a>
can have some basic security as 'strapper.php' will only launch known apps
(come on down SQlite) and can partially control access.
a trained monkey can type phpx://appname into the browser or into command
windows ( I am living proof )
allows php binaries & modules (& they need to) to live in their own folder
away from system folders and safely away from other PHP installations
an installer could optionally include PEAR or have a quick search for any
existing PEAR installations in the usual places
taking out my backside ? let me know , else whaddya think ?
there are a few installers around for win32 , if they could all provide a
standard method of access regardless of which installer you used I think
that would be a good thing for users and developers.
I used phpx above as the protocol , could be whatever of course.
(..hiding now in case I said something more stupid than normal)
Regards,
Simon.