...

View Full Version : Intellisense-like site scraping - Converting "a href"'s to something else?



FuzzyLogik
01-07-2007, 05:06 PM
I want to automatically replace all link tags with a custom function.

<a href="http://www.codingforums.com/">Coding Forums</a>

to

<? link('codingforums.com','Coding Forums'); ?>

Can anyone point me to a tutorial or help me through this?

Thanks

Troy297
01-07-2007, 09:25 PM
You mean like have a php code change them dynamically? Or just replace all instances of "<a href=></a>" to your link thing?

If you just mean replace then use the notepad "replace" under the edit menu.

FuzzyLogik
01-08-2007, 12:11 AM
Yes, I need PHP to change them for me, so if I place a normal link in my HTML, it will convert it to what I put in the OP



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum