Standalone PSP
 
 This is the Web.PikeServerPages.PSPCompiler class from Pike ScriptRunner, modified to run as a standalone CGI script, so no server-specific customization at all is needed. Place it somewhere (/usr/local/bin/pikesp for example), and put the following at the top of your PSP page: #! /path/to/pike /usr/local/bin/pikesp 
 
/* merge GET and POST data into 'form' */
mixed form = http_decode_urlencoded_query(getenv("QUERY_STRING")||"");
form += http_decode_urlencoded_query(Stdio.stdin->read());
Powered by PikeWiki2  | 
|||
| gotpike.org | Copyright © 2004 - 2009 | Pike is a trademark of Department of Computer and Information Science, Linköping University | |||