Re: index.html or index.php

From: Date: Fri, 29 Sep 2006 07:30:05 +0000
Subject: Re: index.html or index.php
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-42436@lists.php.net to get a copy of this message
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@actsministries.org] Sent: Fri 29/09/2006 04:46 To: PHP DB Subject: [PHP-DB] 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


« previous php.db (#42436) next »