WordPress.org

Ready to get started?Download WordPress

Forums

PHP 4 or PHP 5 ? (6 posts)

  1. alberto
    Member
    Posted 9 years ago #

    Hi,
    I'm running a WP (1.5.1.2) powered blog on Dreamhost and I can choose between PHP 4 or PHP 5 (as CGI). What PHP version should I use with 1.5.1.2? Is WP faster on PHP 5? Could I have some problems with installed plugins (Get Custom Field Values, etc.)

    Many thanks

  2. RustIndy
    Member
    Posted 9 years ago #

    So far, WordPress 1.5x and every plugin I've installed on it has worked fine with PHP5 :)

  3. alberto
    Member
    Posted 9 years ago #

    Of course WP 1.5.x is PHP5 friendly, but my dilemma is: PHP4 or PHP5?
    Many thanks

  4. RustIndy
    Member
    Posted 9 years ago #

    Personally, I choose PHP5 for a couple of reasons.

    First, it's the newest version of PHP, and while there is some breakage with older PHP scripts and some more recent large projects (I'm looking at you, Mambo), for the most part it is backwards compatible with PHP4.

    Second, from a programming perspective, it is much more powerful than PHP4.

    Third, at least on my server, PHP5 does seem to respond slightly faster with database-based applications than PHP4. I don't know if this is due to changes in PHP itself or changes to the database plugins, but it's measurable on my server.

    Of course, your mileage may vary.

  5. nateomedia
    Member
    Posted 9 years ago #

    Do you need any features introduced in PHP 5? If not, then wouldn't it make more sense to use PHP 4, which has had far more testing done to eliminate bugs and security issues?

    Remember, it's all fun and games until someone hacks your site and destroys your database.

  6. tarachan
    Member
    Posted 9 years ago #

    I tried switching to 5, but went back to 4 because my dashboard stuff disappeared. *shrugs* No biggie, but that's the only "problem" I've encountered. Other than that, it's all good.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags