If you want to show only the filename and not the compleate path, you
can use the basename() function:
<?
echo "I am currently viewing " . basename($_SERVER["REQUEST_URI"]);
?>
Philipp Schwarz
Shaun A Riches schrieb:
<?
echo "I am currently viewing " . $_SERVER["REQUEST_URI"];
?>
REQUEST_URI and a simple string manipulation will help you.
___________________
Shaun Riches
Computer Science Student
-----Original Message-----
From: Ron Piggott (PHP) [mailto:ron.php@xxxxxxxxxxxxxxxxxx]
Sent: Fri 29/09/2006 04:46
To: PHP DB
Subject: index.html or index.php
I have used both index.html and index.php in the various directories.
Is there a way to tell which was loaded if a user visited:
www.domain.com/directory/
?
Ron
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php