I recently acquired a fairly large and complex web site that's coded in PHP mostly (for the front end) that I need to update to work in a 7.3 or higher PHP environment. What are my options with doing this with no coding experience?
The web site is a stats gathering web site for distributed computing web sites. https://stats.free-dc.org/stats.php?page=index
There are a lot of
extension/functions or whatever it's called. ChatGPT says its mysql_* extensions. This code needs to be converted to mysqli_* extensions/functions and while I have tried to use ChatGPT to just convert the code for me it makes a lot of wrong assumptions and seems to add stuff that doesn't belong. Such as adding code for connecting to the MySQL (MariaDB) database with the username, dbname, password, etc.. that wasn't in the original code as the connection was already established from whatever file called that file. I'm over my head here, but hopefully what I am saying makes sense.
The problem is there are a LOT of php files on this web site and it seems they all need to be updated. I can't really trust ChatGPT to do this as when it does make mistakes or adds stuff that doesn't belong or omits stuff that does belong I'm not smart enough to see this to tell it to correct it. I got lucky when I noticed the connection code that appeared in the script and asked ChatGPT why it was there lol
The web site is a stats gathering web site for distributed computing web sites. https://stats.free-dc.org/stats.php?page=index
There are a lot of
- mysql_query()
- mysql_num_rows()
- mysql_fetch_array()
extension/functions or whatever it's called. ChatGPT says its mysql_* extensions. This code needs to be converted to mysqli_* extensions/functions and while I have tried to use ChatGPT to just convert the code for me it makes a lot of wrong assumptions and seems to add stuff that doesn't belong. Such as adding code for connecting to the MySQL (MariaDB) database with the username, dbname, password, etc.. that wasn't in the original code as the connection was already established from whatever file called that file. I'm over my head here, but hopefully what I am saying makes sense.
The problem is there are a LOT of php files on this web site and it seems they all need to be updated. I can't really trust ChatGPT to do this as when it does make mistakes or adds stuff that doesn't belong or omits stuff that does belong I'm not smart enough to see this to tell it to correct it. I got lucky when I noticed the connection code that appeared in the script and asked ChatGPT why it was there lol