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?Amount=1&From=EUR&To=USD&image.x=37&image.y=15&image=Submit How to do that? Thanks in advance. Bob.
Generally speaking, you fetch the remote file and then you can extract the data you are after either by searching for a string, or a regexp based on the markup of the site. Of course, this will require maintenance in case the site changes their layout. However, you might also want to check the T&C's from that site. <!-- WARNING: Automated extraction of data is prohibited under the Terms of Use. --> Code (markup):