Need help with PHP code after upgrade from PHP 5.2 to 5.4

Phillip

Active member
Knownhost upgraded PHP from 5.2 to 5.4 yesterday on our VPS. We have a few custom PHP scripts that were working fine with PHP 5.2 and now they are not functioning properly.

It's probably really basic, but I need step-by-step instructions on how to get these working again. Since some of you upgrade PHP often, hopefully this is an easy fix.

These are examples of the code that is not functioning properly. We have an on-line radio station and this PHP code displays what's playing in different parts of our forum and site.

In this first example, the code should not display "We are currently not receiving track information. Please try again in a few minutes." You should just see the text of the three song titles. "We are currently..." is only shown when no tracks are being reported.

http://www.muppetcentral.com/radio/now_playing.php

In the second example all of the text should fit in the blue standard 720x90 banner. Also, the code should not display "We are currently not receiving track information. Please try again in a few minutes." You should just see the text of the three song titles.

http://www.muppetcentral.com/radio/now_playing_ad.php

In the third example, under "now playing" there should be text that displays the song title above the image, however, this isn't here.

http://www.muppetcentral.com/radio/now_playing_forum.php

Again, these scripts were working fine before the PHP 5.2 upgrade so hopefully this is an relatively easy fix.

Thanks in advance for the help.
 
Top Bottom