WordPress.org

Ready to get started?Download WordPress

Forums

PHP 4 (9 posts)

  1. bonez
    Member
    Posted 6 years ago #

    Hi,

    My host has just announced that they will shortly be discontinuing support for PHP4, and only PHP5 software will function.

    I know very little about PHP, so please forgive what must seem like a very stupid question, but is there any way whether I can find out whether my site will be OK?

    Thanks

  2. wp_guy
    Member
    Posted 6 years ago #

    As far as I know... you shouldn't experience any problems.

  3. Ivovic
    Member
    Posted 6 years ago #

    wordpress will be prefectly fine. where you may have problems is in carelessly coded plugins - though that's not likely to be an issue either.

    the rules do change a little between php4 and 5, but not so much that many people notice the difference at all. Generally speaking, there are enough people using either platform now, that any plugin authors tend to get feedback from their users and fix this stuff long before it becomes a problem for you.

    I've upgraded very recently, and I had precisely one issue. A very minor one. I'll lay it out here just so that you know how trivial it was.

    My issue was with my theme, which was my own doing. I had set my date format to (jS of F, Y) to read '7th of May, 2008' -- this works fine in php4, but in php5, the 'o' actually has a purpose, so my dates ended up being '7th 2008f May, 2008' -- that was easily fixed by escaping the extra crap in my date format like so: (jS \o\f F, Y) which if I were worth my weight in dog crap, I would have done from the very beginning.

    That's it.. the sum total.

    All in all, it's a good thing that your host is upgrading to php5, as php 4 is apparently no longer being supported by the php folks.

  4. All my sites run PHP5 and MySQL 5. PHP5 is faster than PHP4 I believe and comes with tons of new awesome functions.

    Short answer though: you have nothing to worry about, at least related to the WordPress core. Plugins (may) be another issue, but it's unlikely.

    For a script to work on PHP4 but break on PHP5, it has to be pretty poorly coded, minus little things like Ivovic's issue.

  5. Binh
    Member
    Posted 6 years ago #

    Of course PHP5 is much better than PHP4. And newer versions of WP likes PHP5. So you should think of it as an improvement, not something to be scared of.

    My blog about SEO Web Design (http://binh.name) is perfectly fine with PHP5, so don't worry.

  6. Michael Torbert
    WordPress Virtuoso
    Posted 6 years ago #

    Way to shamelessly promote your blog.

  7. Anonymous
    Unregistered
    Posted 5 years ago #

    Don't worry! PHP5 is much better than PHP4. And newer versions of WP likes PHP5. So you should think of it as an improvement, not something to be scared of.
    About PHP4, Here are some valuable information for php4
    these resources will help you learn all you need to know about php4
    http://www.dogbreedss.org/dog-diseases.htm hope this will help

  8. vdot35
    Member
    Posted 5 years ago #

    how to convert .htaccess to php.ini

    n my yahoo wordpress I can't upload .htaccess, so what is an alternative for this?
    Is php.ini could replace .htaccess?
    how to convert .htaccess to php.ini the code below?

    *********
    Mod Rewrite rules cannot be updated!

    # BEGIN WordPress
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END WordPress

  9. OpenInviter
    Member
    Posted 5 years ago #

    @vdot35 - .htaccess cannot be replaced by php.ini. You could use httpd.conf for the rewrite rules if you can access it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags