Adblock breaks this site

[Help] PHP grapping runescape news

Discussion in 'Web Programming' started by ozozo, May 25, 2007.

  1. ozozo

    ozozo Member
    Banned

    Joined:
    Feb 11, 2007
    Posts:
    82
    Referrals:
    0
    Sythe Gold:
    0
    [Help] PHP grapping runescape news

    How i can get php grap runescape news?:D
     
  2. night

    night Member
    Banned

    Joined:
    Apr 21, 2005
    Posts:
    60
    Referrals:
    1
    Sythe Gold:
    5
    [Help] PHP grapping runescape news

    you can fopen the runescape site, then use string functions to parse out the news.
     
  3. cp

    cp an cat
    Banned

    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0
    [Help] PHP grapping runescape news

    $x = file_get_contents("http://www.runescape.com");

    $x is all of the runescape index page in one string, so you might want to use regex or some similar method of parsing the string to get what you want.
     
  4. ozozo

    ozozo Member
    Banned

    Joined:
    Feb 11, 2007
    Posts:
    82
    Referrals:
    0
    Sythe Gold:
    0
    [Help] PHP grapping runescape news

    ok I'll try...
     
  5. Puzzle

    Puzzle Apprentice

    Joined:
    May 6, 2005
    Posts:
    846
    Referrals:
    0
    Sythe Gold:
    0
    [Help] PHP grapping runescape news

    or just use explode() and split out what you need
     
< if,then,else statements in html----HURRY!!!! | Buying a Fake Myspace Login >


 
 
Adblock breaks this site