The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.


Results 1 to 2 of 2

Thread: How to manage timeout

  1. #1

    How to manage timeout

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

    http://gostanford.cstv.com/sports/m-.../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?

  2. #2
    i've tried this in a test file and it works fine so maybe you should post your code here.

    Code:
    <?php
    $str_file_content = file_get_contents( 'http://gostanford.cstv.com/sports/m-footbl/stats/2007-2008/teamcume.html');
    echo $str_file_content;
    ?>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012