FreeHostia Forums

5.6 -> 7.0 upgrade question
Page 1 of 1

Author:  giselegdot [ Tue Apr 07, 2020 4:54 pm ]
Post subject:  5.6 -> 7.0 upgrade question

Hi people!

I am an experienced (jack of all trades) web master, but fairly shallow knowledge.

One of my sites is using 5.6 and I need to bring it into 7 as modules (WP) are dropping support for 5.

I tried to find an easy resource for 5->Upgrades. Ideally an auto code checker but failed so far. Reading into help articles, I get dumped straight into different functions, this is not helpful as my PHP knowledge is sketchy, I can "code" with examples, but not off the top of my head.

Is there a semi automated code checker?

AFAIK, my old code uses MySql_ functions which I am sure are killing the code when I flick the switch to 7. Would I be right in thinking thats the main thing I need to fix?

Can anyone who tread this path share their experience?

Author:  PJohnson [ Wed Apr 08, 2020 4:44 am ]
Post subject:  Re: 5.6 -> 7.0 upgrade question


The control panel doesn't have a tool to automatically adapt code to be compatible with newer versions of PHP. You can use the error reporting(display_errors) that will show if the code has any deprecated functions or errors.

It is indeed advisable to replace the mysql functions with their mysqli alternatives, but there are also other functions, such as "ereg_replace", that are deprecated in recent versions of PHP.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group