A few days ago, Facebook released XHP, a PHP extension, which allows defining XML directly in PHP blocks, allowing you to “use PHP as a stricter templating engine”.
It seems a bit strange to be coding XML tags directly in PHP blocks, but it adds features such as automatic escaping, and the ability to manipuate the [...]
Archive for the ‘Web Development’ Category
Facebook XHP RPM on CentOS
Posted 11th February 2010 by Andy | No CommentsPHP public key cryptography using OpenSSL
Posted 5th July 2009 by Andy | 5 CommentsUsing the PHP OpenSSL extension it is fairly easy to sort out a secure system for encrypting data with one key that only can be decrypted with another.
Installing PHP 5.2.6 on CentOS 5 – extra extensions
Posted 19th May 2009 by Andy | 7 CommentsUpdate 20th June 2009 – I found a bug in PHP 5.2.9, so I have compiled 5.2.9 rpms, including the ones that this article talks about, check out the article here.
Update 23rd May 2009 – It appears dbase, readline, json and filter were included either compiled into php or as a shared module in php-common, [...]
Installing PHP 5.2.6 on CentOS 5
Posted 17th May 2009 by Andy | 10 CommentsUpdate 20th June 2009 – I found a bug in PHP 5.2.6, so I have compiled 5.2.10 rpms and provided a repository from which to install them, check out the article here.
Update 19th May 2009 – I have written an article here detailing how to build RPMs and install some additional php extensions, which although [...]
Generating a random PHP identifier
Posted 2nd May 2009 by Andy | 5 CommentsUpdate 1st June 2009 – Added a note mentioning about case-insensitive comparisons in MySQL.
I’ve been looking at generating random identifiers in PHP, and making sure they are random enough. Looking at the PHP function uniqid(), and its suggested better token, I don’t think this is an adiquate enough way:
$better_token = md5(uniqid(mt_rand(), true));
Host Wordpress-MU on any domain
Posted 28th February 2009 by Andy | 21 CommentsWordpress MU (WPMU) gives you the ability to create multiple blogs on a single installation. It was written to provide the ability for a website to provide scalable user blogs. A good example of this is Wordpress.com, Automattic’s hosted blog service.
What WPMU does not do is give you choice on the full domains and paths [...]