Displaying posts tagged: web-development

Creating a multilingual website

3 Comments

Goal: To find a lightweight, multilingual CMS that I can deploy on a server running Lighttpd and FastCGI. Every page in the CMS should have multiple versions, one for each language, with the ability to easily toggle between them.

A simple, one-job PHP/cron dispatcher

1 Comment

Goal: To provide a way for a website administrator to dispatch a long-running command-line program, one that might take hours to complete (so exec is out). The admin interface should show that the process is running. There is only one job that will ever be dispatched.

Firefox, cookies, and localhost

No Comments

Firefox 3 was ignoring a cookie being set by an application running on localhost. The Safari 4 Beta on the same machine had no problems whatsoever.

Decrypted JSON data not being decoded properly

No Comments

Summary: The decrypted string was was null-padded. These null bytes are not handled by the jsondecode function. It is easily solved by running $string = rtrim($string, “\x00”); before decoding.

Wordpress plugin Contact Form 7 and line breaks

9 Comments

Summary: Contact Form 7, a Wordpress plugin, automagically adds line breaks (<br />) to the outputted HTML. To disable it, set define(‘WPCF7_AUTOP’, false); in wp-contact-form-7.php.