<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to wiki</title><link href="https://sourceforge.net/p/modplua/wiki/" rel="alternate"/><link href="https://sourceforge.net/p/modplua/wiki/feed.atom" rel="self"/><id>https://sourceforge.net/p/modplua/wiki/</id><updated>2012-07-13T08:31:44.082000Z</updated><subtitle>Recent changes to wiki</subtitle><entry><title>WikiPage New functions in pLua modified by Daniel Gruno</title><link href="https://sourceforge.net/p/modplua/wiki/New%2520functions%2520in%2520pLua/" rel="alternate"/><published>2012-07-13T08:31:44.082000Z</published><updated>2012-07-13T08:31:44.082000Z</updated><author><name>Daniel Gruno</name><uri>https://sourceforge.net/u/humbedooh/</uri></author><id>https://sourceforge.net92264e64f9627335562ff1d923b234ef52f54125</id><summary type="html">&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;</summary></entry><entry><title>WikiPage Setting up mod_pLua modified by Daniel Gruno</title><link href="https://sourceforge.net/p/modplua/wiki/Setting%2520up%2520mod_pLua/" rel="alternate"/><published>2012-05-25T11:13:29.917000Z</published><updated>2012-05-25T11:13:29.917000Z</updated><author><name>Daniel Gruno</name><uri>https://sourceforge.net/u/humbedooh/</uri></author><id>https://sourceforge.netfea4ff07777e4dbc43c7d8c76cf7f55391a2f35f</id><summary type="html">&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;</summary></entry><entry><title>WikiPage Home modified by Daniel Gruno</title><link href="https://sourceforge.net/p/modplua/wiki/Home/" rel="alternate"/><published>2012-03-09T08:00:44.680000Z</published><updated>2012-03-09T08:00:44.680000Z</updated><author><name>Daniel Gruno</name><uri>https://sourceforge.net/u/humbedooh/</uri></author><id>https://sourceforge.net1d9243e4154a62bbd14430b64e704478d34a9db1</id><summary type="html">&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;</summary></entry><entry><title>WikiPage Home modified by Daniel Gruno</title><link href="https://sourceforge.net/p/modplua/wiki/Home/" rel="alternate"/><published>2012-03-09T08:00:28.975000Z</published><updated>2012-03-09T08:00:28.975000Z</updated><author><name>Daniel Gruno</name><uri>https://sourceforge.net/u/humbedooh/</uri></author><id>https://sourceforge.net9eb3034fa0c97ceb825ef7090fd0d186333f6820</id><summary type="html">&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;</summary></entry><entry><title>WikiPage Setting up mod_pLua modified by Daniel Gruno</title><link href="https://sourceforge.net/p/modplua/wiki/Setting%2520up%2520mod_pLua/" rel="alternate"/><published>2012-03-04T09:38:46.645000Z</published><updated>2012-03-04T09:38:46.645000Z</updated><author><name>Daniel Gruno</name><uri>https://sourceforge.net/u/humbedooh/</uri></author><id>https://sourceforge.netbf25aadb94411e40c5934c158d19d35d10b0c233</id><summary type="html">&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;</summary></entry><entry><title>WikiPage Database connectivity modified by Daniel Gruno</title><link href="https://sourceforge.net/p/modplua/wiki/Database%2520connectivity/" rel="alternate"/><published>2012-03-01T07:00:04.763000Z</published><updated>2012-03-01T07:00:04.763000Z</updated><author><name>Daniel Gruno</name><uri>https://sourceforge.net/u/humbedooh/</uri></author><id>https://sourceforge.net528428e83be29a94eb5a02fa7c3ab8551f39dcb0</id><summary type="html">&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;</summary></entry><entry><title>WikiPage How mod_pLua works modified by Daniel Gruno</title><link href="https://sourceforge.net/p/modplua/wiki/How%2520mod_pLua%2520works/" rel="alternate"/><published>2012-02-21T18:45:01.276000Z</published><updated>2012-02-21T18:45:01.276000Z</updated><author><name>Daniel Gruno</name><uri>https://sourceforge.net/u/humbedooh/</uri></author><id>https://sourceforge.net447212a94983d19a4f80dbb43fe0da691198bdf1</id><summary type="html">&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;</summary></entry><entry><title>WikiPage How mod_pLua works modified by Daniel Gruno</title><link href="https://sourceforge.net/p/modplua/wiki/How%2520mod_pLua%2520works/" rel="alternate"/><published>2012-02-21T18:43:14.802000Z</published><updated>2012-02-21T18:43:14.802000Z</updated><author><name>Daniel Gruno</name><uri>https://sourceforge.net/u/humbedooh/</uri></author><id>https://sourceforge.net170145eafff540e17d0bac3896b97c32d83e74c8</id><summary type="html">&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;</summary></entry><entry><title>WikiPage New functions in pLua modified by Daniel Gruno</title><link href="https://sourceforge.net/p/modplua/wiki/New%2520functions%2520in%2520pLua/" rel="alternate"/><published>2012-02-21T13:52:22.510000Z</published><updated>2012-02-21T13:52:22.510000Z</updated><author><name>Daniel Gruno</name><uri>https://sourceforge.net/u/humbedooh/</uri></author><id>https://sourceforge.net31ca06e5519bdeee06712f0b2b6f202bdf437a59</id><summary type="html">&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;</summary></entry><entry><title>WikiPage Home modified by Daniel Gruno</title><link href="https://sourceforge.net/p/modplua/wiki/Home/" rel="alternate"/><published>2012-02-20T18:59:46.194000Z</published><updated>2012-02-20T18:59:46.194000Z</updated><author><name>Daniel Gruno</name><uri>https://sourceforge.net/u/humbedooh/</uri></author><id>https://sourceforge.netdbfc4c20476bb68416fd8b779a49ea34bff0c8c5</id><summary type="html">&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;</summary></entry></feed>