I’m about to migrate from mysqli to PDO and would like some feedback on how it’s related to other similar solutions regardning speed, security and db-portability. Any experience welcome.
regards,
/t
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Speed, portability, and security are really the only reasons TO move to PDO from the mysql_ specific functions in PHP. You’re moving from a database-specific method to abstracting your database access – when it comes to db portability, this is IT.
If you’re using mysql_query all over the place in your code, you’ll have some getting used to when it comes time start using object methods instead. Code practice aside, you’ll soon come to wonder how you ever did it any other way! 🙂