Menu

#98 file_get_html returns empty

closed
None
2018-12-15
2012-02-06
Anonymous
No

Hi,

I have been using this feature regularly since, a week now to fetch html tags. This feature isn't working specifically for the following URL :
http://www.autocarindia.com/Review/285375,new-premier-rio-review-test-drive.aspx

The code i have written is as follows:
$html = file_get_html($url);
where $url = 'http://www.autocarindia.com/Review/285375,new-premier-rio-review-test-drive.aspx'
$html is empty. There are no errors on server side.

One strange behavior i observed is that it's unable to fetch the data on local server but works properly on the server where it is deployed. All the server configurations are same.

Can anyone suggest anything ?

Discussion

  • LogMANOriginal

    LogMANOriginal - 2018-12-15
    • status: open --> closed
    • assigned_to: LogMANOriginal
     
  • LogMANOriginal

    LogMANOriginal - 2018-12-15

    Closing because the original author doesn't exist anymore and the links are broken as well. To me this looks like an issue with comma in the URL, which can be problematic and should be avoided with file_get_html.

     

Log in to post a comment.