Retrieving a URL
Posted: Mon Jan 19, 2004 9:24 am
Hi,
Just a little problem i hope will be easy to solve.
One of our clients displays their share price on their websites homepage. This is supplied in an iFrame from another company (Hemscott).
What i want to be able to do is read the HTML from that URL, but if the task takes longer than say 3 seconds, display a message saying the share price is temporaritly unavailable.
Baiscally, is it possible to set a timeout on how long php will wait to retrieve a URL? if so, how?
Thanks
Mark
Just a little problem i hope will be easy to solve.
One of our clients displays their share price on their websites homepage. This is supplied in an iFrame from another company (Hemscott).
What i want to be able to do is read the HTML from that URL, but if the task takes longer than say 3 seconds, display a message saying the share price is temporaritly unavailable.
Baiscally, is it possible to set a timeout on how long php will wait to retrieve a URL? if so, how?
Thanks
Mark