I have a function in a script that uses an XML file from a different server. Unfortunately the load on the server is extremely high and at times the function that uses the file times out. This causes problems in the page im trying to load.
This is the code that timesout:
<html>
<head>
<META HTTP-EQUIV="refresh" content="<?php echo(nowplaying(1)); ?>">
And this is the output I get when it times out:
<html>
<head>
<META HTTP-EQUIV="refresh" content="
Is there a way I can make PHP put in a dummy value and continue in the loading of the page?