I've got the example below to set up phpOpenTracker to log exit URL's
but I'm having trouble getting it to work. I have played with the
quotes and changed the \\2 to $3 and got the url in there but I can't
get it to base64 encode it.
I'm new to PHP and any help on getting the encoding to work would be
appreciated.
<?php
function encode_exit_urls($buffer) {
return preg_replace(
"#<a(.*)href=(\"|')http://([^\"']+)(\"|')#isUm",
'"<a href=\"exit.php?url=".base64_encode(\'\\2\')."\""' ,
$buffer
);
}
// start output-buffering
ob_start('encode_exit_urls');
// main code of your script
?>
--
Regards - Rodney Pont
The from address exists but is mostly dumped,
please send any emails to the address below
e-mail ngps07 (at) infohit (dot) fsnet (dot) co (dot) uk