lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Just a question - if you are falling back to Lua, what do you need PHP
then for?
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.

Eike

2009/6/19 V S P <toreason@fastmail.fm>:
> Hi,
> 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
> developed
>
>
> 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.
>
>
> thanks
> --
>  V S P
>  toreason@fastmail.fm
>
> --
> http://www.fastmail.fm - A fast, anti-spam email service.
>
>