You are here: http fopen problem « PHP Programming Language « IT news, forums, messages
http fopen problem

Posted by Cleverbum on 10/12/06 11:48

I'm trying to write a script which downloads information from a number
of websites analyses it and shows some results.
The problem I'm having is that some sites seem to work perfectly while
others don't. I know it's to do with the complexity of the site, but
I've no idea how to fix it in my code.
At the moment I am just using file_get_contents() to get all of the
relevant pages, but when I use this on http://www.dontstayin.com it
just doesn't work!
when I go there with my browser and view the source it's all lovely
html, but when I try to grab it file_get_contents() returns
bool(false)
what am I doing wrong, and how can I better emulate an actual
web-browser?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация