Mod_plua is a http://www.aliyun.com/zixun/aggregation/14417.html ">apache HTTP Server 2.x module for LUA web development applications. You can use LUA scripts in two different ways: embedded LUA scripts, or pure LUA scripts for CGI-style interfaces.
Embedded LUA scripts:
<html> <body> get = Parseget (); --# Parse Any get data passed in to us. name = get[' name '] or ' unknown person '; x = (x or 0) + 1; --# Increment A persistent, global variable X.? > <h1>hello <?=name?>!</h1> <?if (x > 3) then?> x is > 3! <?end?> </body></html>
Pure Lua Script:
setContentType ("HTML"); Local VARs = Parseget (); Local user = vars[' name '] or ' unknown person '; Print ("Hello,", user);
Mod_plua can precompile all scripts and cache compiled binaries, execute and return when the user accesses, and allow tens of thousands of requests per minute on any modern server. Mod_plua supports the traditional LUA interpreter, as well as the Luajit on Windows and UNIX platforms. If your Web server supports it, Mod_plua is handled through persistent database connections apr_dbd and MOD_DBD dbopen () Lua functions.
Mod_plua 0.52 This version fixes some warnings. Added set and get cookie value Setcookie () and GetCookie ().
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.