Jump to content

How do I make a script modify a script?


jamesxg1

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.