Reply to Re: Screen Scrape Issue preg_match

Your name:

Reply:


Posted by Rik on 10/24/06 16:28

cainwebdesign@gmail.com wrote:
> Rik,
> Thanks but can you take a quick look, i still can see to get it to
> work.


The reason is as simple as evil.

When opening it with PHP, the page terminates prematurely on:
<!-- useragent: null -->

They rely on user-agent detection to build the rest of their page, and
don't revert to anything if it's not recognized.

To gather the HTML, you're best of using CURL, and fake a User-Agent.
--
Rik Wasmus

[Back to original 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

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