Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PHP5 with MySQL 4.0

possible to use both msyql and mysqli connections?

6:57 pm on Aug 16, 2006 (gmt 0)

Full Member

10+ Year Member

joined:Jan 5, 2004
votes: 0

I would like to move up to PHP5, but our server currently uses MySQL 4.0, and it's not possible for us to upgrade to MYSQL 4.1 or greater at this time because we have so many live applications using MySQL 4.0 that we can't risk messing up right now..

Does anyone know if it is possible to use PHP5 with MySQL 4.0 and have both the mysql and mysqli functions available?

I understand that mysqli is designed for MySQL version 4.1 or greater and that I wouldn't have access to all of the features if using the previous version, but I wonder whether I could still use the object oriented methods of accessing the databases that is provided by mysqli. Or would I only be able to use mysql_connect if using Mysql 4.0?

2:13 pm on Aug 22, 2006 (gmt 0)


WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
votes: 2

The mysqli [php.net] extension allows you to access the functionality provided by MySQL 4.1 and above.