[nycphp-talk] Embedded PHP
Cristian Baltatescu
cbaltatescu at greenvision.ro
Wed Nov 9 11:01:49 EST 2011
I always hated answers to questions like this that proposed a totally
different solution, BUT :)
Since you would be ok with a very basic/crippled version of php then why
stick with it? I'm sure you can handle what you mentioned (basic variable
manipulation and echo) in any similar scripting language (perl, python,
ruby etc) that could already be embedded on the platform you end up on? The
beagleboard guys mentioned nodejs for example. I admit i don't know
anything about the one from TI you mentioned.
On Wed, Nov 9, 2011 at 5:32 PM, Chris Snyder <chsnyder at gmail.com> wrote:
> On Wed, Nov 9, 2011 at 10:08 AM, Gary Mort <garyamort at gmail.com> wrote:
>>
>>
>> Instead, I'm thinking of trying to do it from the other end - ie clone
>> the source and then remove every directory and file not needed to compile,
>> as well as removing more from the configuration script and makefile - with
>> the first goal of being to have a CLI PHP compiled which just has a few
>> functions[ideally, break it down to just some basic variable manipulation
>> and the echo function], then add functions back in on a case by case basis
>> as they are needed.
>>
>> Just curious if anyone here knows of an approach that starts at the
>> minimal end and builds up, or even a subtractive approach that has resulted
>> in a very small, limited functionality PHP interpreter?
>>
>>
> Given that you're not talking about microscopic amounts of memory (pretty
> sure my first PHP production server was 256MB) I'm not sure how hard you
> should work on this.
>
> Simply compiling PHP with most of the --without-xxx flags should get you a
> relatively small binary, no? And very few shared library dependencies.
>
> I'm only guessing, but that seems like an easy place to start.
>
> Chris Snyder
> http://chxor.chxo.com/
>
>
> _______________________________________________
> New York PHP Users Group Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> http://www.nyphp.org/Show-Participation
>
--
http://www.cristianbaltatescu.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20111109/eca51a39/attachment.html>
More information about the talk
mailing list