Reply to Re: PHP script that displays another page partial content

Your name:

Reply:


Posted by Myron Turner on 01/13/07 16:32

lucavilla@cashette.com wrote:
> If you go to http://europe.nokia.com/A4305060, fill the "Enter your
> product code:" field with the value "0523183" and press "Go" (the
> ending page URL varies because there's a variable session-ID in the
> URL-link associated to "Go") you will obtain this string:
>
> "Version: RM43_V1.10.030"
>
> Is it possible to have a string.php page that just display this string?
> how can I do it?
>
It's not clear what you want to do. Do you want to create a script
which outputs a page that accepts a product code and then returns a page
with the version result and nothing else? Or do you want to filter the
Nokia page through a script and output your own page in its place with
only the version string?

The former is a straight-forward, basic PHP or CGI task which--if you
unsure of how to do it--you can learn from any basic text on PHP. If
it's the latter, that involves 'screen-scraping', i.e. a script which
downloads the Nokia page, understands its HTML, and can pick out the
required information from the downloaded page. I've done a fair amount
of this in Perl, but at the request of the company whose pages I've
screen-scraped. I make this point because screen-scraping is not
considered ethical and many sites like e-bay have policies against it.

--

_____________________
Myron Turner
http://www.room535.org
http://www.bstatzero.org
http://www.mturner.org/XML_PullParser/

[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

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