Re: [PHP-DEV] execute compressed PHP command-line application

2013-07-27 Thread crankypuss
On 07/26/2013 04:56 AM, Ferenc Kovacs wrote: check out http://us1.php.net/phar and http://www.php.net/manual/en/**wrappers.phar.php currently this is the preferred method Preferred by whom, thank you very much? Who is it that has set himself/

Re: [PHP-DEV] execute compressed PHP command-line application

2013-07-26 Thread Ferenc Kovacs
> check out http://us1.php.net/phar and >>> >> http://www.php.net/manual/en/**wrappers.phar.php >> currently this is the preferred method >> > > Preferred by whom, thank you very much? Who is it that has set > himself/itself up as The Authority on th

Re: [PHP-DEV] execute compressed PHP command-line application

2013-07-26 Thread crankypuss
On 07/25/2013 08:42 AM, Ferenc Kovacs wrote: On Thu, Jul 18, 2013 at 10:38 AM, crankypuss wrote: I've been using PHP for linux command-line applications. Some are quite large. I've built the code to combine the mainline plus everything it calls into a single file to avoid portability issues

Re: [PHP-DEV] execute compressed PHP command-line application

2013-07-25 Thread Ferenc Kovacs
On Thu, Jul 18, 2013 at 10:38 AM, crankypuss wrote: > I've been using PHP for linux command-line applications. Some are quite > large. I've built the code to combine the mainline plus everything it > calls into a single file to avoid portability issues with include > libraries. I've built the

Re: [PHP-DEV] execute compressed PHP command-line application

2013-07-18 Thread crankypuss
On 07/18/2013 04:20 AM, Alexey Zakhlestin wrote: On 18.07.2013, at 12:38, crankypuss wrote: I've been using PHP for linux command-line applications. Some are quite large. I've built the code to combine the mainline plus everything it calls into a single file to avoid portability issues wi

Re: [PHP-DEV] execute compressed PHP command-line application

2013-07-18 Thread Alexey Zakhlestin
On 18.07.2013, at 12:38, crankypuss wrote: > I've been using PHP for linux command-line applications. Some are quite > large. I've built the code to combine the mainline plus everything it calls > into a single file to avoid portability issues with include libraries. I've > built the code

Re: [PHP-DEV] execute compressed PHP command-line application

2013-07-18 Thread crankypuss
On 07/18/2013 03:07 AM, Terry Ellison wrote: crankypuss wrote: ... I don't want to have to modify the interpreter at this point... Sorry, but this list is for just this purpose, so you post does belong on the DL. Everyone loves a list-nanny Not to worry too much, I expect to get around to

Re: [PHP-DEV] execute compressed PHP command-line application

2013-07-18 Thread crankypuss
On 07/18/2013 03:05 AM, Yasuo Ohgaki wrote: Hi, You may use register_shutdown_function() to clean things up after exit() http://jp2.php.net/manual/en/function.register-shutdown-function.php So simply extract files to tmp dir and delete everything after execution. I guess this is what you need.

Re: [PHP-DEV] execute compressed PHP command-line application

2013-07-18 Thread Terry Ellison
crankypuss wrote: ... I don't want to have to modify the interpreter at this point... Sorry, but this list is for just this purpose, so you post does belong on the DL. Regards Terry PS. read up on PHAR extensions and use of streams. There's nothing stopping you specifying a phar or even a

Re: [PHP-DEV] execute compressed PHP command-line application

2013-07-18 Thread Yasuo Ohgaki
Hi, You may use register_shutdown_function() to clean things up after exit() http://jp2.php.net/manual/en/function.register-shutdown-function.php So simply extract files to tmp dir and delete everything after execution. I guess this is what you need. BTW, I don't think eval() is evil as long as