Do you have a question? Post it now! No Registration Necessary. Now with pictures!
July 22, 2006, 7:40 pm
rate this thread
href="blah.html"> to <a href="clicktrough.php?uri=blah.html> but the
problem is some of the tags have class so <a class="llama"
href="blah.html"> but i dont want to change all of the tags that
contain "href" because that would mess with the css. the code i am
using right now is
$file = file_get_contents('http://kingcow.com /');
$llama = preg_split('/<a(.)*href=\"/', $file, -1, PREG_SPLIT_NO_EMPTY);
this works but the problem is it removes the <a......>.
any help is grately appricated.