Posts Tagged ‘php’
Best way to store IP addresses in MySQL
By David Pratt / Tags: mysql, php / 1 Comment » / Published: 10-08-10
It’s tempting to store IP addresses in a database as a varchar of length 15 in the absence of a dedicated IPv4 field type in mysql, but that isn’t the most efficient way of doing so…
Non-standard page size’s in TCPDF
By David Pratt / Tags: php, tcpdf / 3 Comments » / Published: 23-06-10
If you need to create a PDF using TCPDF that isn’t a standard size (A4, A5, B1, LETTER etc.) then this snippet might help you out: $resolution= array(100, 100); $pdf->AddPage(‘P’, $resolution);
Using Crontab with Plesk to call PHP files
By David Pratt / Tags: crontab, php, plesk / 2 Comments » / Published: 06-05-10
How to set up a scheduled job on Plesk that calls a PHP file at an interval of your choosing.
How to set up a local server on Windows
By David Pratt / Tags: apache, mysql, php, server, wordpress / No Comments » / Published: 11-05-09
Instructions on how to setup a local server manually on a windows box; running Apache, MySQL and PHP.
Subscribe via RSS
Twitter