PHP Classes

Creates links inside other links

Recommend this page to a friend!

      Autolink Keywords  >  All threads  >  Creates links inside other links  >  (Un) Subscribe thread alerts  
Subject:Creates links inside other links
Summary:Creates links inside other links
Messages:1
Author:Nick L
Date:2007-07-03 03:01:45
 

  1. Creates links inside other links   Reply   Report abuse  
Picture of Nick L Nick L - 2007-07-03 03:01:45
Your class creates links inside other links if it finds the keyword.

E.g.
$keywords = "test";
$linksArray = array("http://mysite.com/test.html");
$content = "<a href=\"test.html\">test</a> This is also a test.";

$al = new autolink($keywords, $linksArray, $content);

echo $al->linkKeywords();

I also get this:
Notice: Undefined index: test in /home/nick/public_html/temp/testing.php on line 51

Also, you should supress id and class if it has nothing in it.