Code:
while (list($a,$b) = each($c))
becomes:
Code:
foreach ($c as $a => $b)
For more info on all the steps necessary to get your code up to PHP8 standards, please have a look at this pinned thread in the Web Features forum:
viewtopic.php?f=22&t=72729And this one for the detailed instructions on how to get it PHP7-ready:
viewtopic.php?f=22&t=53771Last but not least: If this is a "production environment" you should turn off display_errors and instead log your errors to a logfile. Also turning off error_reporting for deprecations, warnings and notices might be a good idea in general depending on your use case. (At work, we usually set error_reporting to the maximum possible, but don't display any errors to the user at all)