jamesxg1 Posted May 30, 2010 Share Posted May 30, 2010 Hiya peeps! I have this code. $tags['MENU'] = ' <ul> <li class="first"><a href="category.html" class="selected">freebies</a></li> <li><a href="category.html">inspiration</a></li> <li><a href="category.html">tutorials</a></li> <li><a href="category.html">web 2.0</a></li> <li><a href="category.html">interviews</a></li> <li><a href="category.html">technology</a></li> <li><a href="category.html">freelancing</a></li> <li><a href="category.html">compilations</a></li> <li><a href="category.html">downloads</a></li> </ul>'; How do I make a script that will harvest the category.html part and match it with the page a user is on and change that line to <li class="first"><a href="category.html" class="selected">LINK</a></li>. Thanks in advance, Many thanks, James. Link to comment https://forums.phpfreaks.com/topic/203344-how-do-i-make-a-script-modify-a-script/ Share on other sites More sharing options...
-Karl- Posted May 30, 2010 Share Posted May 30, 2010 Take a look at this thread, I recently answered a question like this: http://www.phpfreaks.com/forums/index.php/topic,299521.msg1417875.html#msg1417875 Link to comment https://forums.phpfreaks.com/topic/203344-how-do-i-make-a-script-modify-a-script/#findComment-1065327 Share on other sites More sharing options...
jamesxg1 Posted May 30, 2010 Author Share Posted May 30, 2010 Thanks Karl Many thanks, James. Link to comment https://forums.phpfreaks.com/topic/203344-how-do-i-make-a-script-modify-a-script/#findComment-1065330 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.