Forum Moderators: martinibuster
I am looking for a script that would do anchor text linking for me. I did a search here but could not find anything.
I know there must be something like this: the script has an array of keywords and links associated with those keywords. So it parses the content, finds the keywords and inserts links in the right places.
Thanks for your help,
Nova
<?php
$file = file("keywords.txt"); //Opens the text fileforeach($file as $line){
$line = trim($line);
$split = split("\t",$line); //Splits the line by a tabprint "<a href=\"$split[0]\">$split[1]</a><br>";
}?>
Keywords.txt should look something like this :
http://www.webmasterworld.com(tab)Webmaster World
[mydomain.com(tab)My...] Domain
Etc etc.
-panic