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.
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.
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
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.
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 - 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.
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.
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.