[thelist] PHP Question

Burhan Khalid burhankh at hotmail.com
Tue Dec 11 10:31:35 CST 2001





Okay... Easy fix...

<?= echo $REQUEST_URI; ?>

Is broken. Badly.

Good job using the <?= shortcut - cleans your code up really nicely BUT.
It is a shortcut for the echo command. Which means that your putting in
echo and then the ; will break it. Therefore, what you want that tag to
read as is:

<?=$REQUEST_URI?>

And that should work.

err, actually, isn't that missing the ; ? Like :
<?= $REQUEST_URI; ?>

Good job on noting the echo error. Just got used to putting it in there and 
forgot about it. Along the same lines, is there any easy way to just get the 
filename, without the path, or do I have to chop it up manually?

what I get :

/path/to/index.php

what I want :

index.php

Burhan Khalid


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp





More information about the thelist mailing list