#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2010
    Posts
    38
    Rep Power
    5

    Words on txt file


    Hello everyone,
    I want to put every domain, from this list:
    http://www.wsmdomains.com/ExpiredDomains/30mar2010.txt
    and putting it into variable.
    For that I'm using the PHP code "$string = file_get_contents(http://www.wsmdomains.com/ExpiredDomains/30mar2010.txt);"

    what is the code that cut every domain and put it into varialbe?
  2. #2
  3. kill 9, $$;
    Devshed Supreme Being (6500+ posts)

    Join Date
    Sep 2001
    Location
    Shanghai, An tSín
    Posts
    6,897
    Rep Power
    3886
    Doesn't look like a job for regular expressions to me. You just need to split your $string up into individual lines (I'm no PHP coder, but I believe its "explode" function will do that for you) and ignore the first 7, which constitute the header. Every other line is a domain name.

    Comments on this post

    • ManiacDan agrees : Yes, this.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2010
    Posts
    38
    Rep Power
    5
    OK
    Thank you

IMN logo majestic logo threadwatch logo seochat tools logo