Title: php4 to php5 connection issue
Last modified: August 19, 2016

---

# php4 to php5 connection issue

 *  Resolved [Scoe](https://wordpress.org/support/users/scoe/)
 * (@scoe)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/php4-to-php5-connection-issue/)
 * Hi,
 * I have been developing a website on my local computer. The other day I realised
   that I was using php4 instead of 5 (I am able to switch between the two). When
   in php4 (and MySQL 5.0.67) I was able to view and edit my website reasonably 
   well, there were a few features that were not working, which made me think of
   using php5.
 * Since upgrading to php5, I cant connect to my website. The database hasn’t changed
   at all. only the php. I then created a new user and set the privilages so the
   password is OLD_PASSWORD, but with no luck.
 * Any ideas? or other solutions?
 * Thanks

Viewing 1 replies (of 1 total)

 *  Thread Starter [Scoe](https://wordpress.org/support/users/scoe/)
 * (@scoe)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/php4-to-php5-connection-issue/#post-1407593)
 * Never mind, I found out that I had the ini_set() in the wrong constructor class,
   it remained in the php4 function wpdb() instead of the php5 function __construct()
 * Thanks anyway

Viewing 1 replies (of 1 total)

The topic ‘php4 to php5 connection issue’ is closed to new replies.

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 1 reply
 * 1 participant
 * Last reply from: [Scoe](https://wordpress.org/support/users/scoe/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/php4-to-php5-connection-issue/#post-1407593)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
