Update PHP website script files from PHP5 to 8

Job ID: 34975377

Budget: £5 – £10 GBP

Our website was originally written in PHP5. It has run fine for well over a decade but our new server requires us to update our website to PHP8 language. We need someone to go through the .php files and change them to be PHP8 compliant. (e.g. change mysql_connect lines to MySQLi) They don't seem too bad in that when we ran the server in PHP8 with 'display errors' all that was returned was:

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /var/www/vhosts/1to1legal.co.uk/httpdocs/cms/admin/include.php:29 Stack trace: #0 /var/www/vhosts/1to1legal.co.uk/httpdocs/cms/admin/config.php(24): DB-connect() #1 /var/www/vhosts/1to1legal.co.uk/httpdocs/cms/about3.php(16): include_once('...') #2 [main] thrown in /var/www/vhosts/1to1legal.co.uk/httpdocs/cms/admin/include.php on line 29

There are around 2 dozen files like the ones attached. They will be supplied in batches for each section of the site as each runs from separate scripts.
Related categories: PHP Linux Apache MySQL HTML