Re: includes and filenames

From: Date: Wed, 15 Aug 2001 14:38:56 +0000
Subject: Re: includes and filenames
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-11380@lists.php.net to get a copy of this message
So you want the footer to link to the page that called it? echo "<a href=\"$SCRIPT_NAME\">text</a> or echo "<a href=\"$PHP_SCRIPT\">text</a> Justin Buist Trident Technology, Inc. 4700 60th St. SW, Suite 102 Grand Rapids, MI 49512 Ph. 616.554.2700 Fx. 616.554.3331 Mo. 616.291.2612 On Tue, 14 Aug 2001, travis forden wrote: > Hi. > > This is my setup. I have a PHP file that pulls in two includes - content and footer. content is > done with readfile() since no processing done (in most cases). footer in done with include() - or > will be once i find an answer to my question. > > currently the footer is exactly the same for each page. i want to add a dynamic link that uses > the filename of the includer file. > > in effect i want a function that will find the filename of the includer file and past it into a > link. > > something like this would appear in the include file. > $path = filename [this is a function or functions that find the filename of the file accessing > the include file, footer.txt] > text text text <A > href="http://validator.w3.org/check?uri=.$path>text</a> > > I want to tack the value of $path onto the end of the first part of the HREF. > > How can I do this? > > travis > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.db (#11380) next »