Drupal 6.x and a View's Links Returning Incorrect Values

I’m using Drupal 6.x with a View I created to create an alpha pager and I’m having problems displaying the respective letter-links on the same page that the view is being displayed on.

The code I’m using to create the links prints the following:

http://localhost/projects/blah//projects/blah/node/42/f
http://localhost/projects/blah//projects/blah/node/42/g
http://localhost/projects/blah//projects/blah/node/42/h

What I would like to have instead is the following:

http://localhost/projects/blah/node/42/f
http://localhost/projects/blah/node/42/g
http://localhost/projects/blah/node/42/h

The code responsible for all this is the following:

<?php
print l(t('All'), 'the_views_name') . ' ';
for ($char = ord('a'); $char <= ord('z'); $char++) {
   print l(strtoupper(chr($char)), request_uri() . '/' . chr($char)) . ' ';
}
?>

Long story short, I need my URLs to look like this:
[B]http://localhost/projects/blah/node/42/&lt;letter&gt;[/B]

What am I doing wrong here? And for whatever it’s worth, this alpha pager code is placed in the header of the View configuration using the PHP Input Filter.

I found out that arg(n) can be used… http://api.drupal.org/api/drupal/includes!path.inc/function/arg/6