0

In php, while using file_get_contents (http://www.123inkcartridges.ca/hp-toner-cartridges/LaserJet-2200.html")function this error is coming out

"It seems your browser doesn't support cookies. Please enable cookies to use our website."

How to resolve this error so that I can read the html of the page.

Bhupender
  • 1
  • 1
  • 1
    Please see the answer here: http://stackoverflow.com/questions/1797510/file-get-contents-receive-cookies – slax0r Apr 04 '17 at 10:54
  • 1
    Some server prevents access of their content to any script. So, you have to use PHP CURL which will request a page as a browser. – Maya Shah Apr 04 '17 at 10:58
  • 3
    Possible duplicate of [file\_get\_contents receive cookies](http://stackoverflow.com/questions/1797510/file-get-contents-receive-cookies) – r00t-err0r Apr 04 '17 at 10:58

0 Answers0