Please Help

Discussion in 'PHP' started by Hades, Sep 7, 2007.

  1. Hades

    Hades Well-Known Member

    Messages:
    1,873
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    150
    #21
    Oh, one more thing. Is there a way to collect all of the links that are like this:


    http://www.anime-sensei.net/2006/05/hackgift.html

    from

    http://www.anime-sensei.net/2005/12/downloads.html ?

    I tried converting the script to that, by changing this line,

    if (preg_match_all('/anime-sensei\.net\/\([0-9])\/\([0-9])\/\([A-Z])\.html', $source, $links))
    PHP:
    but i guess i made a mistake someplace or other, so it gives me an error message saying

     
    Hades, Sep 8, 2007 IP
  2. streety

    streety Peon

    Messages:
    321
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #22
    if (preg_match_all('|/anime-sensei\.net/([0-9])/([0-9])/([A-Z])\.html|', $source, $links))
    PHP:
    I haven't tested this but give it a try. Hopefully it should work.
     
    streety, Sep 9, 2007 IP
  3. benjimit

    benjimit Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #23
    y dont u get some ready made sites and teh n compare?
     
    benjimit, Sep 9, 2007 IP
  4. Hades

    Hades Well-Known Member

    Messages:
    1,873
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    150
    #24
    cause this is really custom. I dont know any script that does this.

    Also, I think the line after the preg_match_all has to be modified as well, though I have no clue how to do that, so if anyone has an idea, i would appreciate it.

    Thanks
    nick
     
    Hades, Sep 9, 2007 IP