Read an article today about Resizing images with PHP which has a follow up about Retaining Transparency with PHP Image Resizing.
I haven’t had to do this yet, but I see it in my future. :)
Read an article today about Resizing images with PHP which has a follow up about Retaining Transparency with PHP Image Resizing.
I haven’t had to do this yet, but I see it in my future. :)
Quick and dirty PHP error handling:
error_reporting( E_ALL | E_STRICT ); ini_set( 'display_errors', 'on' );
Apparently the autocomplete attribute is now supported in HTML5.
Looking for a small 1×1 pixel transparent GIF image to use in your website? Here is a 1×1 pixel transparent GIF image. You could use a transparent PNG instead, but then the file size would be bigger, so why would you do that? :)
Read this article SEO Best Practices for URL Structure this evening and learned to use no more than 3-5 words in your URL as according to Google’s Matt Cutts if there are more than 5 words Google algorithms typically will just weight those words less and just not give you as much credit.
To format a float value as a percentage in PHP:
$formatted = sprintf( '%.2f', $value * 100 );
I was interested to know if using prepared statements was a waste of time if the statement was only going to be used once. I found Are Prepared Statements a waste for normal queries? (PHP) on StackOverflow and basically came away with the understanding that it’s a pretty low overhead and it’s good for security so you might as well use prepared statements all the time.
Found a great article today! PHP Best Practices.
I’m trying to make my mind up about whether I should be using mysqli or PDO for a project I’m just starting and I’ve found a few relevant articles:
And based on all of that I think I’ve decided to use PDO.
Found an article tonight: Why you Should be using PHP’s PDO for Database Access. Skimmed it. Plan to read the whole thing later.