You are here: Re: PHP as an embedded scripting language « PHP Programming Language « IT news, forums, messages
Re: PHP as an embedded scripting language

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация