Updating old code to PHP7

Nobody’s favourite task but there’s so much out there, especially in respect of moving from MySQL to MySQLi or PDO. Might this be a good topic for a Sitepoint how-to guide. I’ve just been asked to fix someone’s ancient code so I guess I’ll need to take a look and start thinking, I’m sure there’ll be some Gotchas in there.

Maybe this topic will be of interest?

Well, I think it’s the goal which is most important here.

If you need only to kick up the old project in order to make it run with PHP7, there are cheaper solutions, like mysql functions emulator written in mysqli.
If you want to refactor the app, making it up-to-date according to the nowadays standards, it would be a completely different task.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.