[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [Q] invoking Lua from within PHP
- From: Eike Decker <zet23t@...>
- Date: Fri, 19 Jun 2009 10:19:00 +0200
Just a question - if you are falling back to Lua, what do you need PHP
In theory you could compile a library for PHP which allows you to
spawn Lua states in PHP which would minimize the overhead. But then
again, you could create a Lua module for your webserver which is doing
the same thing as PHP is doing for the webserver.
2009/6/19 V S P <email@example.com>:
> I saw this question on the list once in a while and just
> wanted to check to see if may be an 'in-process' solution has been
> Currently I invoke lua from PHP by just spawning a process and
> sending my 'function' arguments as a JSON string into STDIN,
> lua reads in, processes and sends out another JSON string which
> I read from PHP on STDOUT pipe.
> However the above is expensive, and while now I am still in the
> 'early' stages of the product it is not important,
> I would like to know if anybody might have developed a simple 'string in
> / string out'
> plugin for PHP that could invoke Lua.
> V S P
> http://www.fastmail.fm - A fast, anti-spam email service.