Re: <?php include(str_replace(".html", ".htm", $_SERVER["PATH_TRANSLATED"]));?>

From: Date: Thu, 01 Jul 2004 17:19:42 +0000
Subject: Re: <?php include(str_replace(".html", ".htm", $_SERVER["PATH_TRANSLATED"]));?>
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-189478@lists.php.net to get a copy of this message
On Thu, 01 Jul 2004 11:52:47 -0400, John Taylor-Johnston <taylorjo@collegesherbrooke.qc.ca> wrote: > > Hi, > I need another variable. I need the filename itself. I want to substitute > > /var/www/html/new1/foo.html > > for > > /var/www/html/new1/phpinfo.htm I am not exactly sure what you want to do but I think you should take a look at the function basename http://www.php.net/basename

« previous php.general (#189478) next »