Parse text file

Discussion in 'Programming' started by ssimon171078, Jan 4, 2015.

  1. #1
    i have text file :
    https://www.seoclerk.com
    https://www.seoclerk.com
    https://www.seoclerk.com/
    https://www.seoclerk.com/marketplace
    https://www.seoclerk.com/want
    https://www.seoclerk.com/trade
    https://www.seoclerk.com/sponsoredtweets
    https://www.seoclerk.com/articles
    https://www.seoclerk.com/reviews
    https://www.seoclerk.com/ebooks
    https://www.seoclerk.com/software
    https://www.seoclerk.com/theme
    https://www.seoclerk.com/forum/
    https://www.seoclerk.com/faq
    https://www.seoclerk.com/forum/
    https://www.seoclerk.com/freelancers
    https://www.seoclerk.com/howtobuy
    https://www.seoclerk.com/login?r=L25ldw==
    https://www.seoclerk.com/login?r=Lz9zPXQ=
    https://www.seoclerk.com/signup?r=Lz9zPXQ=
    https://www.seoclerk.com/?s=d
    https://www.seoclerk.com/?s=p
    https://www.seoclerk.com/?s=r
    https://www.seoclerk.com/?s=c
    https://www.seoclerk.com/?s=bm
    https://www.seoclerk.com/?s=tz
    https://www.seoclerk.com/?s=g
    #
    #
    #
    https://www.seoclerk.com/page/2?s=t
    https://www.seoclerk.com/page/3?s=t
    https://www.seoclerk.com/page/4?s=t
    https://www.seoclerk.com/page/5?s=t
    https://www.seoclerk.com/page/2?s=t
    https://www.seoclerk.com/Other/2658/Transfer-Funds-to-your-SEOClerks-Account-Balance
    https://www.seoclerk.com/Other/2658/Transfer-Funds-to-your-SEOClerks-Account-Balance
    https://www.seoclerk.com/user/jordan
    https://www.seoclerk.com/facebook/80933/I-will-Promote-your-Facebook-Fan-Page
    https://www.seoclerk.com/facebook/80933/I-will-Promote-your-Facebook-Fan-Page
    https://www.seoclerk.com/user/afreenv
    #
    https://www.seoclerk.com/user/ITKING
    https://www.seoclerk.com/facebook/4974/Facebook-Marketing-OR-1500-Twitter-Marketing-OR-INSTAGRAM-Marketing
    https://www.seoclerk.com/facebook/4974/Facebook-Marketing-OR-1500-Twitter-Marketing-OR-INSTAGRAM-Marketing
    https://www.seoclerk.com/user/rankbuilder
    #
    https://www.seoclerk.com/Instagram/60544/Get-1000-Instagram-followers-only
    https://www.seoclerk.com/Instagram/60544/Get-1000-Instagram-followers-only
    https://www.seoclerk.com/user/trustservices
    https://www.seoclerk.com/Instagram/37964/give-1000-High-Quality-lNSTAGRAM-FOLLOWERS-within-24hrs
    https://www.seoclerk.com/Instagram/37964/give-1000-High-Quality-lNSTAGRAM-FOLLOWERS-within-24hrs
    https://www.seoclerk.com/user/cyberxcrime
    #
    https://www.seoclerk.com/Link-Building/3202/-POWERFUL-EXTRA-s-create-132-DOFOLLOW-High-PR2-PR7-Highly-Authorized-Google-Dominating-BACKLINKS
    https://www.seoclerk.com/Link-Building/3202/-POWERFUL-EXTRA-s-create-132-DOFOLLOW-High-PR2-PR7-Highly-Authorized-Google-Dominating-BACKLINKS
    https://www.seoclerk.com/user/shaarx
    #
    https://www.seoclerk.com/twitter/167497/I-will-get-you-4000-twitter-followers
    https://www.seoclerk.com/twitter/167497/I-will-get-you-4000-twitter-followers
    https://www.seoclerk.com/user/fenryr
    #
    https://www.seoclerk.com/twitter/18820/Provide-you-verified-3-000-t-witter-followers
    https://www.seoclerk.com/twitter/18820/Provide-you-verified-3-000-t-witter-followers
    https://www.seoclerk.com/user/nikitaparu
    -------------------------------------------------------------------------------------------------
    i need to receive these lines from this file in php:
    https://www.seoclerk.com/Other/2658/Transfer-Funds-to-your-SEOClerks-Account-Balance
    https://www.seoclerk.com/facebook/4974/Facebook-Marketing-OR-1500-Twitter-Marketing-OR-INSTAGRAM-Marketing
    i started to write :
    $pos =strpos ($href,"Other");
    if($pos!=0){
    fwrite($fd,$href);
    fwrite($fd,"\n");}
    }
    fclose($fd);
     
    ssimon171078, Jan 4, 2015 IP