+ Reply to Thread
Results 1 to 4 of 4

Thread: Getting certain infomation and linking it to yours is it possible

  1. #1
    stesouthby is offline x10 Sophmore stesouthby is an unknown quantity at this point
    Join Date
    Sep 2009
    Location
    UK
    Posts
    115

    Getting certain infomation and linking it to yours is it possible

    hey guys how you all doing I was wondering is it possible to link certain infomation from one website say like price to another website so if that price changes so does yours? so you have a direct link the website the infomation is already on is using php and by the look of thier code it is static and they update there prices manually.
    "It's time to prove to your friends that you're worth a damn. Sometimes that means dying, sometimes it means killing a whole lot of people."- sin city "You either die a hero or you live long enough to see yourself become the villain" - TDK

  2. #2
    lemon-tree's Avatar
    lemon-tree is offline x10 Minion lemon-tree has a spectacular aura about
    Join Date
    Nov 2007
    Posts
    1,420

    Re: Getting certain infomation and linking it to yours is it possible

    You could probably do this by loading their page into a string variable with file_get_contents and then running a regex to find the tag containing the price based on the basic template for the item page. However, a lot of sites probably won't like you doing this, at least not without first obtaining proper permission to do so.

  3. #3
    bhupendra2895's Avatar
    bhupendra2895 is offline x10 Elder bhupendra2895 is an unknown quantity at this point
    Join Date
    Jun 2010
    Location
    India
    Posts
    554

    Re: Getting certain infomation and linking it to yours is it possible

    Yes you can do it, this idea came in the mind of web developers and they developed some new techniques through which two websites can talk.That's what we call web 2.0.Now how to do this?

    There are lot of ways.But it is always better to sign up with the service you want to use.For example Amazon offers books store information to other websites for free.For using this you need to sign up with Amazon as developer and get a API key and a API.This API can be used with any of the programming languages because it recieves XML.Similar services are offered by google and they have powerful php support in form of zendgdata. Some sites offers php api using curl() and fsock().These can be risky unless you know you can trust the site.Another way is to read RSS and extract the information, RSS feeds are in xml format, so they can be used to get such info using any language.It is a worse idea to open a website page with your program in background and then parse it to get the price.This will be waste of bandwidth of your and siteowner and as well as may fall under copyright violation.

    Edit:- You wrote, it is static which I couldn't see on my mobile phone.So then you have to do what lemontree told you.
    Last edited by bhupendra2895; 08-02-2010 at 10:04 PM.
    Liked this? Click on the icon on the bottom of post to make me .

  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,633

    Re: Getting certain infomation and linking it to yours is it possible

    Years ago it was called "scraping".
    As mentioned, it is best if you are getting it off of a site that welcomes it and has some sort of feed you can use.

    Methods depend on the volatility and diversity of information. Are you talking about stock prices? Or something that does not change that often?

    Needs to be updated every call to your webpage? You can make the external request every time, but then you are at the mercy of the other website. If they are slow in responding to your request, your page is slow.

    Or can it be updated once a day/hourly? You can run a cron job and store the information in a file and have your PHP/Perl script access that.
    Nothing is always absolutely so.

+ Reply to Thread

Similar Threads

  1. PHP Linking?
    By kim_foxx in forum Programming Help
    Replies: 6
    Last Post: 05-30-2010, 03:47 PM
  2. Name Server infomation
    By iblisuk in forum Free Hosting
    Replies: 2
    Last Post: 01-02-2008, 04:13 PM
  3. Linking
    By HabboHaze in forum Computers & Technology
    Replies: 3
    Last Post: 11-04-2006, 05:18 PM
  4. Do you really post your real infomation?
    By Brandon in forum Off Topic
    Replies: 14
    Last Post: 03-19-2006, 07:13 PM
  5. Get Battlefield 1942 Server Infomation
    By Brandon in forum Scripts & 3rd Party Apps
    Replies: 1
    Last Post: 01-03-2006, 03:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers