Quantcast
Channel: David Pratt » php
Browsing latest articles
Browse All 6 View Live

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 Article



Image may be NSFW.
Clik here to view.

Using 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 Article

Non-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 Article

Image may be NSFW.
Clik here to view.

Best 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 Article

Create 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 Article


Exporting 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
Browsing latest articles
Browse All 6 View Live




Latest Images