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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.