<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to wiki</title><link>https://sourceforge.net/p/modplua/wiki/</link><description>Recent changes to wiki</description><atom:link href="https://sourceforge.net/p/modplua/wiki/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 13 Jul 2012 08:31:44 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/modplua/wiki/feed.rss" rel="self" type="application/rss+xml"/><item><title>WikiPage New functions in pLua modified by Daniel Gruno</title><link>https://sourceforge.net/p/modplua/wiki/New%2520functions%2520in%2520pLua/</link><description>&lt;pre&gt;--- v40
+++ v41
@@ -360,6 +360,18 @@
 
 * * *
 
+## string.md5(`text`):
+
+Creates an MD5 digest based on `text`
+
+#### Example: 
+
+~~~~~~
+    local txt = string.md5("The quick brown fox jumps over the lazy dog");
+    print(txt); --# Prints '9e107d9d372bb6826bd81d3542a419d6'
+~~~~~~
+* * *
+
 ## string.SHA256(`text`):
 
 Creates a SHA256 digest based on `text`
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Gruno</dc:creator><pubDate>Fri, 13 Jul 2012 08:31:44 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net92264e64f9627335562ff1d923b234ef52f54125</guid></item><item><title>WikiPage Setting up mod_pLua modified by Daniel Gruno</title><link>https://sourceforge.net/p/modplua/wiki/Setting%2520up%2520mod_pLua/</link><description>&lt;pre&gt;--- v31
+++ v32
@@ -48,6 +48,8 @@
 
 #####pLuaStates &amp;nbsp;`N`
 Sets the available amount of Lua states to `N` states. Default is 50. pLuaStates is by default configured for the threaded MPM version. If you are using prefork MPM, you may set this number to 1 to save memory.
+
+In mod_pLua 0.53 or above, setting this value to 0 will create a per-thread Lua state instead of managing a global per-server pool. On certain systems, such as the event MPM on UNIX, this may improve your performance significantly.
 
 #####pLuaRuns &amp;nbsp;`N`
 Restarts Lua States after `N` sessions. Default is 1000
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Gruno</dc:creator><pubDate>Fri, 25 May 2012 11:13:29 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netfea4ff07777e4dbc43c7d8c76cf7f55391a2f35f</guid></item><item><title>WikiPage Home modified by Daniel Gruno</title><link>https://sourceforge.net/p/modplua/wiki/Home/</link><description>&lt;pre&gt;--- v73 
+++ v74 
@@ -53,7 +53,7 @@
 
 ## Sites using mod_pLua (or derivatives thereof)
 http://www.projectit.org - a playground for project management  
-http://www.ningyou-project.org - an animelist'ish web system written in Lua
+http://www.ningyou-project.org - an animelist'ish web system written in Lua  
 http://www.sourceforge-heartbeats.info - a timeline annotation service for SourceForge projects
 ##Authors
 [[project_admins]]
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Gruno</dc:creator><pubDate>Fri, 09 Mar 2012 08:00:44 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net1d9243e4154a62bbd14430b64e704478d34a9db1</guid></item><item><title>WikiPage Home modified by Daniel Gruno</title><link>https://sourceforge.net/p/modplua/wiki/Home/</link><description>&lt;pre&gt;--- v72 
+++ v73 
@@ -54,6 +54,7 @@
 ## Sites using mod_pLua (or derivatives thereof)
 http://www.projectit.org - a playground for project management  
 http://www.ningyou-project.org - an animelist'ish web system written in Lua
+http://www.sourceforge-heartbeats.info - a timeline annotation service for SourceForge projects
 ##Authors
 [[project_admins]]
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Gruno</dc:creator><pubDate>Fri, 09 Mar 2012 08:00:28 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net9eb3034fa0c97ceb825ef7090fd0d186333f6820</guid></item><item><title>WikiPage Setting up mod_pLua modified by Daniel Gruno</title><link>https://sourceforge.net/p/modplua/wiki/Setting%2520up%2520mod_pLua/</link><description>&lt;pre&gt;--- v30 
+++ v31 
@@ -37,6 +37,12 @@
 &lt;/FilesMatch&gt;
 ~~~~~~
 
+Another way to add the pLua handler to a file type is to use the AddHandler directive:
+
+~~~~~~
+AddHandler plua .lua
+~~~~~~
+
 ## Fine-tuning mod_pLua
 mod_pLua comes with a set of default values that can be changed in the apache config:
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Gruno</dc:creator><pubDate>Sun, 04 Mar 2012 09:38:46 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netbf25aadb94411e40c5934c158d19d35d10b0c233</guid></item><item><title>WikiPage Database connectivity modified by Daniel Gruno</title><link>https://sourceforge.net/p/modplua/wiki/Database%2520connectivity/</link><description>&lt;pre&gt;--- v6 
+++ v7 
@@ -22,7 +22,7 @@
 ~~~~~~
 :::perl
 local db = dbopen("sqlite3", "/path/to/mydatabase.sqlite"); --# SQLite3
-local db2 = dbopen("mysql", "Server=localhost;Database=myDataBase;"); --# MySQL
+local db2 = dbopen("mysql", "host=localhost,user=root,database=myDataBase"); --# MySQL
 local db3 = dbopen("mod_dbd", ""); --# mod_dbd connector
 ~~~~~~
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Gruno</dc:creator><pubDate>Thu, 01 Mar 2012 07:00:04 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net528428e83be29a94eb5a02fa7c3ab8551f39dcb0</guid></item><item><title>WikiPage How mod_pLua works modified by Daniel Gruno</title><link>https://sourceforge.net/p/modplua/wiki/How%2520mod_pLua%2520works/</link><description>&lt;pre&gt;--- v11 
+++ v12 
@@ -19,10 +19,10 @@
 
 __`mod_pLua` is for:__
 
-* Script or hypertext oriented development as with PHP, ASPX etc.
+* Script or hypertext oriented development as with PHP, ASP, JSP etc.
 * Flow based execution of scripts (script is run as read).
 * Automatic handling of request and file cache.
-* Developing applications that make use of persistent database connections
+* Developing applications that make use of persistent database connections.
 
 __`mod_lua` is for:__
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Gruno</dc:creator><pubDate>Tue, 21 Feb 2012 18:45:01 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net447212a94983d19a4f80dbb43fe0da691198bdf1</guid></item><item><title>WikiPage How mod_pLua works modified by Daniel Gruno</title><link>https://sourceforge.net/p/modplua/wiki/How%2520mod_pLua%2520works/</link><description>&lt;pre&gt;--- v10 
+++ v11 
@@ -33,6 +33,6 @@
 __Notable differences in design:__
 
 * __State handling:__ `mod_lua` uses a _per-thread_ created state for execution while `mod_pLua` uses a _per-host_ pool of states that threads share.
-
+* __Libraries:__ `mod_lua` requires opening of any library needed for operations (including `string`, `table` etc) while `mod_pLua` comes batteries-included (unless specifically told otherwise with the `pLuaIgnoreLibrary` directive).
 
 As written above, you can sum the differences up like so: mod_pLua is the mod_php of Lua, while mod_lua is the mod_perl of Lua (although they are not as bloated).
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Gruno</dc:creator><pubDate>Tue, 21 Feb 2012 18:43:14 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net170145eafff540e17d0bac3896b97c32d83e74c8</guid></item><item><title>WikiPage New functions in pLua modified by Daniel Gruno</title><link>https://sourceforge.net/p/modplua/wiki/New%2520functions%2520in%2520pLua/</link><description>&lt;pre&gt;--- v39 
+++ v40 
@@ -200,6 +200,23 @@
 * * *
 
 
+## getRequestBody(`[filename]`):
+
+Reads the request body. If `filename` is specified, the request body is written to `filename` instead (useful where memory consumption is a concern), and the total size of the request body is returned.  
+If no `filename` is specified, it returns the entire request body as well as the size of the body.   
+`getRequestBody()` works only with PUT and POST requests.
+
+#### Example: 
+
+~~~~~~
+    local bytesWritten = getRequestBody("output.txt");
+    if (bytesWritten) then 
+        print("You sent a file that was ", bytesWritten, " bytes!");
+    end
+~~~~~~
+
+* * *
+
 ## header(`key`, `value`):
 
 Sets the output HTTP header `key` to `value`.
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Gruno</dc:creator><pubDate>Tue, 21 Feb 2012 13:52:22 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net31ca06e5519bdeee06712f0b2b6f202bdf437a59</guid></item><item><title>WikiPage Home modified by Daniel Gruno</title><link>https://sourceforge.net/p/modplua/wiki/Home/</link><description>&lt;pre&gt;--- v71 
+++ v72 
@@ -52,7 +52,7 @@
 * [mod_pLua logo]
 
 ## Sites using mod_pLua (or derivatives thereof)
-http://www.projectit.org - a playground for project management
+http://www.projectit.org - a playground for project management  
 http://www.ningyou-project.org - an animelist'ish web system written in Lua
 ##Authors
 [[project_admins]]
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Gruno</dc:creator><pubDate>Mon, 20 Feb 2012 18:59:46 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netdbfc4c20476bb68416fd8b779a49ea34bff0c8c5</guid></item></channel></rss>