file get contents - Error using file_get_contents in PHP -
has seen before. if go page (http://thamessailingclub.co.uk/news.php?type=news&source=google%20boating%20news) , @ page source, there no errors. however, if retrieve url in php using:
file_get_contents($url) ;
...there (sql) errors on page! weird how can sql return errors in 1 case , not other? breaking test suite.
90% of probabilty it's issue related http headers. file_get_contents doesn't send headers browser , broke query.
Comments
Post a Comment