|
Posted by Jerry Stuckle on 10/20/05 00:42
Roger wrote:
> Jerry Stuckle wrote:
>
>
>>PHP ia not compiled, so it won't meet your second requirement.
>
>
> Oops, no, I misled you there! What I meant was that I need to compile
> the interpreter into the application. The embedded interpreter would
> interpret uncompiled code.
>
>
>>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.
>
>
> PHP can run as a stanalone interpter. In fact the CGI version is quite
> capable as being used as such (or rather **it is** a standalone
> interpreter).
>
> However, as you point out, it is pratically always used in web server
> scenarious, I don't no how much this has detracted from it's
> suitability as an embedded scripting engine.
>
Roger,
I don't know how you could compile the interpreter into your program. I
suspect it would be quite difficult, requiring some changes to the
interpreter code. But I guess it could be done.
Alternatively, you could call the command line interpreter and buffer
the contents back into your program by redirecting stdout to a pipe.
I think it would be difficult, though. Remember - PHP itself doesn't
have any real user interface other than a command line prompt.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|