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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -