|
Posted by Jerry Stuckle on 10/19/05 14:55
Roger wrote:
> .....ie in my application!
>
> Basically I want to add a scripting language to a cross platform
> application. The prime requirements are that it is:
>
> a) Small
> b) May be easily staticlly compiled into the app and require nothing
> more than libc and sockets.
> c) It must be easy to add new functions in C to hook into the app.
> d) Reasonably easy to learn and use.
>
> After looking at the many options available I have almost settled on
> Lua, however I would **like** to use PHP, I have used the apache PHP
> module for server side scripting in the past and like it. It has been
> excluded a bit from my choice because I could not find out anything
> **about** using it as an embedded scripting language for apps, and any
> attempt to search for e.g "PHP embedded" results in zillions of
> references to embedding in HTML etc.
>
> Can anybody give me any pointers or tips on this aspect/use of the
> language?
>
PHP ia not compiled, so it won't meet your second requirement.
Additionally, I've never seen it embedded in anything but html. While I
see no reason why it couldn't be, it's the Apache (or IIS) PHP module
which senses the <?php and ?> tags and passes what's between them to the
interpreter. You'd have to create a similar module for a standalone app.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|