Remove all links from html to a site by PHP

Discussion in 'PHP' started by joomir, Mar 1, 2014.

  1. #1
    Hi all,

    How can i remove all links to a site from html by PHP?
     
    joomir, Mar 1, 2014 IP
  2. pentaxial

    pentaxial Active Member

    Messages:
    101
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    78
    #2
    you can use str_replace function to replace it, before it parse html content as string and use php function to do it
     
    pentaxial, Mar 1, 2014 IP
  3. Bahman

    Bahman Member

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    I'll do it for you if you want ....
     
    Bahman, Mar 2, 2014 IP
  4. Usama Aziz

    Usama Aziz Well-Known Member

    Messages:
    46
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    123
    #4
    It is easy.
    just get the html data and send me I will do it in a minute.
     
    Usama Aziz, Mar 12, 2014 IP