Except from the other half of JavaScript, SSJS (Server-Side JavaScript)...
http://en.wikipedia.org/wiki/Server-side_JavaScript
I'm guessing you want to run the 'javascript:urchinTracker ('/outgoing/example_com');' JavaScript function, as well as redirecting the user? I can't think of a nice way to do this at the moment, but you could either replicate the urchinTracker () in PHP code, or even do something like this:
<?php
$outbound_url = "http://".$row['URL'];
echo "<script type=\"text/javascript\">\n";
echo "urchinTracker('/outgoing/example_com');\n";
echo "</script>\n";
header ("Location: " . $outbound_url);
?>
Might not work, but what i'm trying to achieve is first running the javascript, hopefully it doesn't mess with the headers, then redirecting...