Re: Binary Files
| From: | Frank M. Kromann | Date: | Mon, 05 Mar 2001 04:32:58 +0000 |
| Subject: | Re: Binary Files | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-269@lists.php.net to get a copy of this message | ||
You can write a wrapper, that takes a one ore more binary files and a text based script and pack it
togehter in one executable "package". It will need some coding and you will lose the
flexibility.
Most complex programs comes with many files and a install routine. If people want to deploy
applications with php-gtk we have to write a good instalation program and perhaps some nice way of
packing the script and the call to the executalbe into one executable.
- Frank
> On Sunday 04 March 2001 06:25 pm, you wrote:
> > No it will not be possible to use php to create binary files.
>
> I have used "wrapper" programs for Tcl/Tk. For those who've never used
> Tcl/tk, it is a language that does things in much the same way as php-gtk, in
> that a binary file parses a text file script. In fact, by itself, Tcl is
> text-only, much like php. But with the Tk (toolkit) extension, it is able to
> produce graphical programs from a script. It is because of my experience with
> Tcl/Tk that I am so excited about php-gtk.
>
> The wrapper programs I've used simply concatenate the Tcl/Tk script to the
> end of an interpreter to produce just one executable file. The smallest
> wrapper I've used produced a 600K file, which was small enough for my
> purposes. This seems like what we need here. I don't really know why the same
> principles wouldn't work.
>
> For an example, see
> http://home.nycap.rr.com/dlabelle/freewrap/freewrap.html .
> The source code for this program is available at this link as well.
>
> Anyone know any reason why this wouldn't work?
>
> Eric
> fenderboy@implode.com
>
>