jsburgoyne Posted January 9, 2013 Share Posted January 9, 2013 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 OneandOne 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 More sharing options...
requinix Posted January 9, 2013 Share Posted January 9, 2013 Your database system is too old. Find a way to upgrade it or export your existing data to a new instance. FYI current version is 5.5 but anything 5.x is good enough. Link to comment https://forums.phpfreaks.com/topic/272905-migrate-from-php-4-to-php-5/#findComment-1404487 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.