Discussion: PHP file_get_contents() not reading entire page - TechRepublic
General discussion
April 12, 2004 at 09:58 PM
marcfong84

Discussion: PHP file_get_contents() not reading entire page

by marcfong84 . Updated 22 years, 2 months ago

PHP file_get_contents() not reading entire page
Hi. Im trying to write a web page parser which will extract weather data from a web site. The URL is : “http://www.accuweather.com/adcbin/public/inthbh_local.asp? partner=accuweather&metric=1&whend=1&whent=8”

I have encountered a problem where the function file_get_contents(URL) does not read the entire web page. I have even tried using fopen() and it still always gets only half of the page. Does anyone know why this is happening?

This discussion is locked

All Comments