Older database developer here. Never really used PHP except for minor fixes to existing code here and there, so basically a newbie w/ PHP.
Anyway, I've got some PHP that I tossed together to create a basic Google Product feed file. It was running fine until we switched back end Linux servers. As far as I can tell, there must've been a change to the revision of PHP installed (both were/are on PHP 7.4.x, with the current server running 7.4.33. Not sure what the old server was on other than 7.4.x).
I'm REALLY hoping someone can spot the issue straight away! I'll attach the PHP script and a screenshot of what's showing in the web browser and maybe someone here can point me in the right direction.
THANK YOU IN ADVANCE!
ProdFeedGen.txt