How to fetch some part of a website using PHP?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bobbili
Forum Newbie
Posts: 2
Joined: Mon Sep 27, 2010 1:15 am

How to fetch some part of a website using PHP?

Post by bobbili »

Hello guys,

How to fetch small portion of a website using PHP?

For example , I want to fetch the value of 1 Euro in Dollar from this website.
http://www.xe.com/ucc/convert.cgi?Amoun ... age=Submit
How to do that? Thanks in advance.

Bob.
User avatar
DigitalMind
Forum Contributor
Posts: 152
Joined: Mon Sep 27, 2010 2:27 am
Location: Ukraine, Kharkov

Re: How to fetch some part of a website using PHP?

Post by DigitalMind »

curl + regex
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: How to fetch some part of a website using PHP?

Post by requinix »

Aww, too bad what you want is explictly disallowed by their Terms of Service.

Like what they have to offer? Great. Pay for it like everybody else does.
bobbili
Forum Newbie
Posts: 2
Joined: Mon Sep 27, 2010 1:15 am

Re: How to fetch some part of a website using PHP?

Post by bobbili »

tasairis wrote:Aww, too bad what you want is explictly disallowed by their Terms of Service.

Like what they have to offer? Great. Pay for it like everybody else does.

Its was an example. :)
itimeheke
Forum Newbie
Posts: 5
Joined: Mon Sep 27, 2010 5:10 am

Re: How to fetch some part of a website using PHP?

Post by itimeheke »

Use regex ;)
Post Reply