PHP file_get_contents / CURL not returning full page
问题 I'm geting some strange behaviour trying to pull 3rd party file contents using CURL or file_get_contents, pasrt of the page is read, but it stops at a random position... no error though (timeout etc). Probably easiest to see if I give the full example!: Using the following very bsic script to read a full URL and return the contents works just fine, with the full content of the page (less some external css etc) in a mater of a second or two: <?php set_time_limit(180); $page = file_get_contents