Hi
I am working with php5 simplexml to grab feeds from the simplyhired job posting affiliate program.
The script grabs the xml feed with this string:
[blue]$pFile = new SimpleXMLElement('url-with-variables', null, true);[/blue]
It works very well and generally the response from the xml server is fast. The server on which the script executes and serves the pages is fast with good connectivity.
However sometimes there is some hangup or delay, and it leaves a blank spot on the web page. When I reload the web page the blank spot is filled with job postings, like it should be. I have no idea how many viewers are seeing blank spots rather than job postings.
I am wondering if there is an additional command I could insert to force the load, or force a reload if blank, or force a wait for response, or set a timeout limit.
Thanks
Mike
I am working with php5 simplexml to grab feeds from the simplyhired job posting affiliate program.
The script grabs the xml feed with this string:
[blue]$pFile = new SimpleXMLElement('url-with-variables', null, true);[/blue]
It works very well and generally the response from the xml server is fast. The server on which the script executes and serves the pages is fast with good connectivity.
However sometimes there is some hangup or delay, and it leaves a blank spot on the web page. When I reload the web page the blank spot is filled with job postings, like it should be. I have no idea how many viewers are seeing blank spots rather than job postings.
I am wondering if there is an additional command I could insert to force the load, or force a reload if blank, or force a wait for response, or set a timeout limit.
Thanks
Mike