How to set up a local server on Windows
Have you ever wondered how to set up a local server on your windows box running with Apache, MySQL and PHP? I have. Here’s how I did it.Mission 1: Download everythingCreate a folder on your desktop and...
View ArticleUsing Crontab with Plesk to call PHP files
Having battled with getting a php file to be called from a scheduled task (a.k.a. a crontab task) using the Plesk interface panel on a Linux box, I thought I’d share a bit of a how-to on it because I...
View ArticleNon-standard page size’s in TCPDF
If you need to create a PDF using TCPDF that isn’t a standard size (A4, A5, B1, LETTER etc.) then it is possible to specify a custom size even though it isn’t that well documented. To do this you need...
View ArticleBest way to store IP addresses in MySQL
It’s tempting to store IP addresses in a database as a VARCHAR(15) in the absence of a dedicated IP address field type in mysql, but that isn’t the most efficient way of doing so. The best way that...
View ArticleCreate photo albums and upload photos using the Facebook Graph API
UPDATE: Thanks to some of the comments below I have been able to revise the code – thanks Luke & GuilhermeI thought I’d share some recent learning’s with using the Facebook Graph API as there seems...
View ArticleExporting data from SQL Server Express 2005 to CSV using PHP
Annoyingly, one of the limitations of SQL Server Express 2005 is that it doesn’t allow you to export data as CSV, or any other format (bar SQL) for that matter. This is fine is you have a small dataset...
View Article