Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PDO vs. direct database extensions

    Apologies in advance if this is not the right place for this question...I'm looking for general advice/comments as opposed to a solution to a particular problem.

    I’m interested in understanding the best way to leverage a database using PHP. I’m interested in opinions on PDO vs. direct database extensions…which do you use and why?

    Thanks.
    Declan

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,058
    Thanks
    10
    Thanked 96 Times in 94 Posts
    I use direct, they are faster ... but the speed difference is minimal & I want to start moving to PDO for portability reasons... of course portability is also the reason I cant do it yet since I still have PHP4 servers in play.

    If you have PHP5 and only PHP5 servers then it would seem like the right move to me.
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #3
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks. That is helpful and interesting.
    Given the announcement of PHP4's deprecation, I'm guessing that most people will be moving to PHP5 soon. Would you agree? How entrenched is the community in PHP4?

  • #4
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,058
    Thanks
    10
    Thanked 96 Times in 94 Posts
    Quote Originally Posted by Declan View Post
    I'm guessing that most people will be moving to PHP5 soon. Would you agree? How entrenched is the community in PHP4?
    Depends, I am only now moving everything over to PHP5 .. but thats on servers I control, I still have clients on shared hosting with PHP4 and some managed dedicated servers where the PHP version depends on the control panel.

    If I were to look for a shared or managed-dedicated host today I would not consider a PHP4 host... and I would expect that I would have been one of the last to form that opinion (slow mover me ) so I assume its time .. especially now PHP announced that PHP4 is no longer being developed and is limited to security updates only.
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •