SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Evangelist
    Join Date
    Mar 2006
    Posts
    466
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Which Version of PHP Should I Learn?

    Hello,

    I've been hitting php pretty hard for the last month and a half and overall it's going pretty well.

    At the moment, my server has PHP 4.2.3 or something like that on it. As a beginner who's creeping his way up to intermediate, would I be better off using PHP 5? The same goes from MySQL. Should I be using the latest version of 5?

    A lot of the scripts I'm writing are intended to work indefinitely, but it appears that functions do change quite a bit as PHP updates.

    So what your thoughts on this?

    Brandon
    Home Recording Forum -
    Make 60% Commission Pushing my new mega system
    Killer Home Recording

  2. #2
    SitePoint Zealot
    Join Date
    Dec 2005
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Learn PHP5 with all of the new OOP features. They are great and very invaluable if you are interested in becoming a great coder. Build up a premade library of classes/functions and you will be set.

    PHP4 is still widely used, but the future is PHP5.

  3. #3
    SitePoint Guru
    Join Date
    Jul 2005
    Location
    Orlando
    Posts
    634
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Agree with chronic. Learn with 5. 4 is more common now, but I think it's easier to learn with 5 and adopt to 4 if necessary. Same with mySQL, though the difference between those two are not as big.

  4. #4
    SitePoint Addict
    Join Date
    Sep 2005
    Posts
    335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I agree. Learn php 5 and OOP.
    PHP Shopping Cart Software Easy Ecommerce Shopping Cart Script.
    PHP Super Cart is 100% template driven.

  5. #5
    SitePoint Addict Procode's Avatar
    Join Date
    Dec 2006
    Location
    New York
    Posts
    371
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OOP is the way to go, so PHP5.

  6. #6
    SitePoint Evangelist
    Join Date
    Apr 2006
    Location
    Halifax, Canada
    Posts
    498
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Eventually you will want to learn OOP and the DOM, but until then you won't find much difference between the two. PHP 4 is what, 6 years old now? I find a lot of people still run it because of legacy code, but if you are developing a new site I don't know what the point would be to continue to use a language that has been obsolete for two years. If you are going to freelance, learn PHP 5 but make sure you know the difference between the two, as you will have to use both along the way.
    Paul Butler.org
    JSSpamBlock - Reduce WordPress spam.

  7. #7
    ✯✯✯ silver trophybronze trophy php_daemon's Avatar
    Join Date
    Mar 2006
    Posts
    5,284
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    PHP5 and MySQL 5 most definitely, don't even look back

    Quote Originally Posted by UFTimmy View Post
    Same with MySQL, though the difference between those two are not as big.
    If you mean the difference between MySQL 4 and 5, I'd call the introduction of views, triggers, stored procedures, etc. pretty big difference.
    Saul


Bookmarks

Posting Permissions

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