[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Advice Mixing PHP and Lua?
- From: Bertrand Mansion <lua@...>
- Date: Tue, 27 Oct 2009 20:04:15 +0100
On Tue, Oct 27, 2009 at 5:36 PM, Patrick
<spell_gooder_now@spellingbeewinnars.org> wrote:
> Hi Everyone
>
> I am new to Lua and still reading Roberto's book. I am absolutely loving
> everything that I have learned so far. It's amazing how many things are
> the way I was hoping they would be in the other languages that I learned
> but were not.
>
> I am going to use Lua with C++ and it looks like a perfect match already
> but I also want to do some web based stuff. PHP just has such a large
> set of libraries of which one I have already become Dependant on. Lua
> seems like a better language but PHP has such a head start with the web.
> What would be the best way to mesh PHP code and Lua? I know there is a
> PECL extension for embedding the Lua interpretor, has anyone else used
> this?Is there a better way?
>
> Thanks in advance-Patrick
Hi Patrick,
If you want to go PHP+Lua, the best is to use the PECL extension. You
can try my branch here, I have fixed a few little things:
http://svn.php.net/viewvc/pecl/lua/branches/NO_LUA_TABLE/
I use this in my trylua experiment and it's working great.
http://trylua.mamasam.com
The PECL extension needs more love, if you want to work on it, you are
welcome, just let me know.
--
Bertrand Mansion
Mamasam