How to manage timeout

have a serious problem, i need to get data from a page like this:…/teamcume.html

when i opne it on my browser it works fine, but when i try caching it by php it takes longer than 30’’ so I get a timeout error message.

i’ve already tried these functions:
and a script that saves in a cache the page, but is very slow anyways and i always get thge same error, somebody can help me?