|
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/
Navigation:
[Reply to this message]
|