I am trying to build a small "PHP-lite" similar to what Axis has done for their video servers and network cameras. They have managed to create a PHP3 executable that is less than 400k.
I don't need it to be that small, but I would like to get it substantially under the 2 meg or so that I get when I compile it using the "configure" script included with PHP3, with everything disabled.
What I am observing is that, even though I have, for example, disabled MySQL support, the mysql.c file is still compiled into mysql.o, and it is still linked into the php executable. This seems to indicate that in order to substantially reduce the size of the executable, some serious hacking will be required.
If anyone has done this, please advise!
Thank you.