Jump to content

Migrate from PHP 4 to PHP 5


jsburgoyne

Recommended Posts

Hello,

Can any one help, I am trying to move from PHP 4 to PHP 5, and this is an error message I encounter.

OneandOne are dropping support foir PHP4 after april this year, I had given up supprting this application, but seems I need to move it forward.

 

This happens after I change the PHP Version variable at my PHP server on OneandOnepost-136413-0-22624900-1357748797_thumb.jpg from 4 to 5.

Error Message:

Warning msql_connect(): Connecting to 3.33.3.23 & 4.0 is not supported. Server is 4.0.27-max-log in

/homepages ..........................

 

This is the code which is being referenced.

//open database

$db_host = "db318.oneandone.co.uk";

$db_username = "dboxxxxxxxxx";

$db_password = "password";

$DB_name = "dbxxxxxxxxx";

$chan = mysql_connect ($db_host, $db_username, $db_password) or die("Unable to connect to $DB_name");

mysql_select_db($DB_name, $chan);

Is there anything I should be changing?

thank you

John

Link to comment
https://forums.phpfreaks.com/topic/272905-migrate-from-php-4-to-php-5/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.