Archive for the ‘Tech’ Category:
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.
Calculate text width and height with JavaScript
By David Pratt / Tags: css, javascript, ui / No Comments » / Published: 22-04-10
A tutorial that shows you how to measure the height and width of a text element using JavaScript.
A few things to consider when developing on a public domain
By David Pratt / Tags: seo / No Comments » / Published: 14-03-10
To prevent a site being indexed by Google before it is ready for public consumption, there are a couple things that you can do.
Subscribe via RSS
Twitter