SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru Nick Carlson's Avatar
    Join Date
    Aug 2003
    Location
    Denver
    Posts
    644
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cross Linking script

    Hello,

    I'm looking for a script that will go through my site (flat file or database) and place links for certain keywords.

    For example, say I have the page mysite.com/fruit.html with the following content.

    "I Like apples better than oranges."

    I want to script to place links based on a configuration file like :

    PHP Code:
     {apples} -> apple.html
     
    {oranges} -> orange.html 
    So then mysite.com/fruit.html becomes:
    "I like apples better than oranges."


    Sorry if this is difficult to understand. Does such a script exist?

    Thanks.
    ncarlson.net - a programmer's dystopia

  2. #2
    King of Paralysis by Analysis bronze trophy
    Join Date
    Jul 2004
    Location
    Ottawa, Canada
    Posts
    5,840
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is it a static site that this is for?

    If so just do a search and replace on the files and put the links in that way.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •