1. akibaba

    akibaba New Member Member

    Nov 22, 2010
    323
    Most of the links (20k+, wupload, filesonic, uploadstation and fileserve) in my Wordpress blog is dead.

    And I get a list of live links for them in a text file. How do I mass replace those dead links in my post with those live links (In one go)?
     
  2. algon

    algon New Member Member

    May 16, 2011
    446
    sorryyyyy
     
  3. factor

    factor New Member Member

    May 20, 2010
    286
    Last edited: Jun 7, 2011
  4. akibaba

    akibaba New Member Member

    Nov 22, 2010
    323
    factor: off topic, yes.
     
  5. qloolp

    qloolp New Member Member

    May 4, 2011
    556
    Last edited: Jun 7, 2011
  6. akibaba

    akibaba New Member Member

    Nov 22, 2010
    323
  7. xTreme

    xTreme New Member Member

    Feb 24, 2010
    1,402
    it will work , but u have to manually replace all links :|
     
  8. akibaba

    akibaba New Member Member

    Nov 22, 2010
    323
    Impossible, there is 20k+ links that is dead, so I seek for some code that can search for unique file name and replace the old links with new links automatically.

    I am willing to pay for it if someone can provide me with such a code.
     
  9. itmees

    itmees New Member Member

    Sep 3, 2010
    488
  10. JoomlaZ

    JoomlaZ New Member Member

    Feb 26, 2010
    1,259
    or hire someone to do it. but will cost $$$ as its 20k (
     
  11. qloolp

    qloolp New Member Member

    May 4, 2011
    556

    If I were you, I'll try

    search : 1246786931/file.part1.rar
    replace : 1143784991/file.part1.rar


    It should work.

    but 20k+ link replace is pain in the ass :facepalm:

    You need some custom php that do it automatic. Unfortunately I think that there are no free code to make this job done.

    :)
     
  12. akibaba

    akibaba New Member Member

    Nov 22, 2010
    323
    I prefer a code rather than some real people to do this job. Code is precise, and ppl is full of human error and not so reliable.
     
  13. akibaba

    akibaba New Member Member

    Nov 22, 2010
    323
    Yes a simple custom php code that can connect to mysql server and issue some MYSQL commands to search and replace is what I need now.
     
  14. akibaba

    akibaba New Member Member

    Nov 22, 2010
    323
    Thanks for this info. Will try it later.
     
  15. mahjong

    mahjong New Member Member

    May 27, 2010
    238
  16. akibaba

    akibaba New Member Member

    Nov 22, 2010
    323
    mahjong: Yes, a regex is needed in this case.
     
  17. Robin H

    Robin H New Member Member

    Feb 21, 2009
    807
    After going through the topic I gathered enough info to ensure you it's fairly simple to code this in PHP.

    As long as the 'new' filename contains the 'old' filename in some way.
     
  18. akibaba

    akibaba New Member Member

    Nov 22, 2010
    323
    'new' filename is exactly the same with 'old' filename :)
     
  19. futureawesome

    futureawesome New Member Member

    Apr 6, 2011
    257
    I think he means using regex whatever .*\/filesonic.*/<oldfilename>
    Works if the file names are the same.
     
  20. akibaba

    akibaba New Member Member

    Nov 22, 2010
    323
    Robin H have coded a custom php code for me in this project. Thanks Robin H.

    Anyone have programming need or need a solution for this can contact him. He is a professional programmer! :)
     

Share This Page