# PHP caching page from URL

**URL:** https://forum.kirupa.com/t/php-caching-page-from-url/248678
**Category:** programming
**Created:** [January 10, 2008, 5:24pm UTC](https://forum.kirupa.com/t/php-caching-page-from-url/248678 "2008-01-10T17:24:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dinchu37](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@dinchu37](https://forum.kirupa.com/u/dinchu37)
#### Post date: [January 10, 2008, 5:24pm UTC](https://forum.kirupa.com/t/php-caching-page-from-url/248678/1 "2008-01-10T17:24:45Z")

</div>

I have a serious problem, i need to get data from a page like this:

[http://gostanford.cstv.com/sports/m-footbl/stats/2007-2008/teamcume.html](http://gostanford.cstv.com/sports/m-footbl/stats/2007-2008/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:  
file\_get\_contents();  
copy();  
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?
