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.
Tag Archives: php
PHP Best Practices
Found a great article today! PHP Best Practices.
To use mysqli or PDO?
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:
- PDO vs. MySQLi: Which Should You Use?
- mysqli or PDO – what are the pros and cons?
- When to use MySQL, MySQLi, or PDO in PHP
- Should I use mysql, mysqli or PDO?
- Why you Should be using PHP’s PDO for Database Access
- Not Convinced PDO is Everything It’s Hyped Up to Be
- PHP Driver: MySQL vs MySQLi vs PDO MySQL
- PHP mysqli overview
- The diffrence beteen PHP’s PDO bindParam & bindValue
- PHP, PDO, MYSQLI opinions please
And based on all of that I think I’ve decided to use PDO.
Why you Should be using PHP’s PDO for Database Access
Found an article tonight: Why you Should be using PHP’s PDO for Database Access. Skimmed it. Plan to read the whole thing later.
PHP parse_url
I learned about the PHP parse_url function today. I’ve wasted a lot of time not knowing about that!
Portable PHP password hashing framework
Learned about the Portable PHP password hashing framework today.
PHP Magic Methods
Read about the PHP Magic Methods today.
The Open Web Application Security Project
Read a little from the Open Web Application Security Project today.
Form Validation with PHP
Read an article about Form Validation with PHP today.
PHP filter_var
I learned about a new PHP function today, filter_var, which can be used to do input validation.