Title: PHP 4
Last modified: August 19, 2016

---

# PHP 4

 *  [bonez](https://wordpress.org/support/users/bonez/)
 * (@bonez)
 * [18 years ago](https://wordpress.org/support/topic/php-4/)
 * 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

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [wp_guy](https://wordpress.org/support/users/wp_guy/)
 * (@wp_guy)
 * [18 years ago](https://wordpress.org/support/topic/php-4/#post-758669)
 * As far as I know… you shouldn’t experience any problems.
 *  [ivovic](https://wordpress.org/support/users/ivovic/)
 * (@ivovic)
 * [18 years ago](https://wordpress.org/support/topic/php-4/#post-758684)
 * 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.
 *  [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [18 years ago](https://wordpress.org/support/topic/php-4/#post-758835)
 * 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.
 *  [Michael Torbert](https://wordpress.org/support/users/hallsofmontezuma/)
 * (@hallsofmontezuma)
 * WordPress Virtuoso
 * [18 years ago](https://wordpress.org/support/topic/php-4/#post-758879)
 * Way to shamelessly promote your blog.
 *  842649
 * [17 years, 9 months ago](https://wordpress.org/support/topic/php-4/#post-758914)
 * 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](http://www.dogbreedss.org/dog-diseases.htm)
   hope this will help
 *  [vdot35](https://wordpress.org/support/users/vdot35/)
 * (@vdot35)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/php-4/#post-758929)
 * **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
 *  [openinviter](https://wordpress.org/support/users/openinviter/)
 * (@openinviter)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/php-4/#post-758931)
 * [@vdot35](https://wordpress.org/support/users/vdot35/) – .htaccess cannot be 
   replaced by php.ini. You could use httpd.conf for the rewrite rules if you can
   access it.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘PHP 4’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [php4](https://wordpress.org/support/topic-tag/php4/)
 * [php5](https://wordpress.org/support/topic-tag/php5/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 7 replies
 * 8 participants
 * Last reply from: [openinviter](https://wordpress.org/support/users/openinviter/)
 * Last activity: [17 years, 7 months ago](https://wordpress.org/support/topic/php-4/#post-758931)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
