Click to See Complete Forum and Search --> : minimal footprint PHP with BOA webserver


Anon
03-12-2002, 08:50 AM
Hi,

I'd like to install a minimal footprint PHP that I can use with a BOA webserver on an embedded system.

There are two problems I need to tackle:

1)BOA has support for cgi, If I remember well php for windows with apache was run as cgi executables (may still today, if have to admit I havent't worked with php for quite a while). In order to use php as cgi executable does there need to be added something to the webserver, except a config setting? I mean some module or something?

2)How small is php's smallest footprint, and how can I make it like that? Basically all I need is the ability to process forms and the file functions (no database features or anything else)

The reason I like to do this is because I want to make a web interface for the configuration of the embedded system. I know phyton or perl can do that, but I'll have to learn them first and there is little time for that and the memory resources are very slim(8MB, max 16MB if really,really necessary). Since I know PHP I had hoped to use that.
So anybody any idea?

Thank you very much in advance.

Greetings,

Filip

Anon
03-29-2002, 03:17 PM
I had a similar quest and decided to use eruby with thttpd. I got the source for ruby from Transmeta's Midori distribution and built the libraries, then I compiled eruby (using the ruby libraries).

The final eruby executable was about 0.6MB stripped.

I think you'd be hard pressed to get perl, python or PHP that small.

You will have to add additional ruby libraries if you want to do session management.

Regards,

Mark