A renaissance view of technology

WebSVN Installation

If you recently downloaded and installed WebSVN and have followed the Installation Guide only to receive this error:
Please set up a repository path in include/config.php using $config->parentPath or $config->addRepository
See the installation guide for more details
you need to do one of two things.
1) Move include/config.php into the WebSVN root OR
2) Edit include/setup.php by changing:
require_once ‘config.php’;
To
require_once ‘include/config.php’;
For [...]

Regular expression for CSV files

After many hours of searching, I found this regular expression to work the best on parsing CSV files:
$expr = “/,(?=(?:[^\"]*\”[^\"]*\”)*(?![^\"]*\”))/”;
Example:
$matches = preg_split($expr, ‘2006-01-01, “Apples, Oranges, and Pears”, $5.95′);

PHP & database sessions

If you have MySQL handle your PHP sessions and are finding that session data is not reliably being read after redirects via PHP’s header function, please read on.
For over a day I had been pulling my hair out trying to figure out why sessions were not sync’ing up after redirects via PHP’s header function. Some [...]

PHP hotspot login script for Chillispot

I offer a modified version of drewb’s PHP version of hotspotlogin.cgi that contains support for PHP installs that do not register global variables.