You are here: Re: price script « All PHP « IT news, forums, messages
Re: price script

Posted by Christoph Burschka on 12/08/06 12:55

Mr. Newt schrieb:
> Is there a way to have script check an entire site for pricing and have it
> put that info in a db or spreadsheet? Is this possible in php?
>
>
> Merry Christmas Robert Newton
>
>

Depends on how consistently the price information is displayed, and how
consistent the URLs are.

In the best case (more like a "too good to be true" case) you can always
assume the price will be in a simple piece of html code similar to this:

<div id="price">$9.99</div>

And the pages are all called something like

"/showproduct.php?id=34"

Then you can iterate over "/showproduct.php?id=$i", have PHP fetch each
page, scan it for the price, and write it to the database.

But if these pages are like Amazon, with insanely long and unpredictable
URLs, it's not that easy...

--
CB

 

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

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