1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Anchor Text Keyword PHP Script

Discussion in 'Search Engine Optimization' started by SonHouse, Jul 11, 2006.

  1. #1
    Is there a PHP script that will search my webpage and look for keyword and replace them with anchor text links that I assign? I have sites with thousands of pages, and would like to dynamically replace keywords with text links to other internal pages.
     
    SonHouse, Jul 11, 2006 IP
  2. BILZ

    BILZ Peon

    Messages:
    1,515
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yeah, i'd be interested in a script like that too.
     
    BILZ, Jul 11, 2006 IP
  3. goldensea80

    goldensea80 Well-Known Member

    Messages:
    422
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    128
    #3
    Maybe it similar to clicksor ads?
     
    goldensea80, Jul 11, 2006 IP
  4. Cheap SEO Services

    Cheap SEO Services <------DoFollow Backlinks

    Messages:
    16,664
    Likes Received:
    1,318
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hey,

    I would like that myself!
     
    Cheap SEO Services, Jul 11, 2006 IP
  5. JosS

    JosS Guest

    Messages:
    369
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Simple Search and Replace with program.

    Find: Manual Cars

    Replace: <a href="manual-cars.php">Manual Cars</a>

    Use a Mass Find and Replace Program to go through the source code and change everything.
     
    JosS, Jul 11, 2006 IP
  6. duilen

    duilen Active Member

    Messages:
    354
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #6
    If you are running Word Press there is such a service. I haven't really used this so I can't say how reliable it is but it looks interesting to say the least.
    http://www.headzoo.com/alinks
     
    duilen, Jul 12, 2006 IP
    Phynder likes this.
  7. SonHouse

    SonHouse Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I guess I could do a search and replace with a text editor but I was wanting something that I could insert as a script that would do that for all the pages at once and on the fly, depending on what links I create. Maybe even rotate the links, so a link for guitars, would rotate different links that are relevant to guitars...I would have to create the links in a master file of somekind and the script would just find and link those keywords dynamically.
     
    SonHouse, Jul 12, 2006 IP
  8. Phynder

    Phynder Well-Known Member

    Messages:
    2,603
    Likes Received:
    145
    Best Answers:
    0
    Trophy Points:
    178
    #8
    aLinks looks really cool - thanks duilen!

    SonHouse - are you pages all created with PHP? Actually, they could even be static HTML and you could filter them through a PHP script - but that would be a heafty server hit. Hmmmm... Interesting idea.
     
    Phynder, Jul 12, 2006 IP
  9. SonHouse

    SonHouse Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Phynder - yes they are created as php files. My thinking is, in order to improve search rankings, etc. you need to have strong internal anchor text links. My problem is, I have too many pages and don't want to do it all by hand. Is there anything like that out there? I'm concerned about the server hit as you say though..something to think about.
     
    SonHouse, Jul 12, 2006 IP
  10. SonHouse

    SonHouse Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    duilen - alinks looks perfect but I'm not using wordpress..just thousands of php pages. I'll do some searches to see if I can find anything similar to alinks.
     
    SonHouse, Jul 12, 2006 IP
  11. ahkip

    ahkip Prominent Member

    Messages:
    9,205
    Likes Received:
    647
    Best Answers:
    0
    Trophy Points:
    310
    #11
    Linux 's shell script can easily do the job
     
    ahkip, Jul 12, 2006 IP
  12. RedCardinal

    RedCardinal Peon

    Messages:
    349
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #12
    What do you use to serve up your pages?

    I it a custom script or something like wordpress?

    It would be relatively easy to modify either your php script or the SQL query to do what you want I think.

    If you modify the php script to replace keywords with anchors this would have a neglible impact on the server unless you have huge traffic. If you have high traffic then you just set up a cache in php.

    Yeah thinking about it more this should be very trivial.
     
    RedCardinal, Jul 12, 2006 IP