Re: Any Cold Fusion users???

From: Date: Wed, 02 Aug 2000 00:20:14 +0000
Subject: Re: Any Cold Fusion users???
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-9608@lists.php.net to get a copy of this message
None of those seem to be quite it. How do I capture the path to a requested file from a link. Say I'm on index.php and I click a link to page4.php. How would I capture the path (link) being requested and store it in a variable while I execute some script before sending them to their destination. Both of your links seem related but not quite right for what I want. I does jive me some ideas of what it might be called though. Ed ""Chris Adams"" <chris@digitaria.com> wrote in message news:044101bffbfe$d40e86d0$0a65a8c0@digitaria.com... > > Does PHP have something along the lines of Cold Fusion's > > #GetFileFromPath(GetTemplatePath())#. I would assume there is some way to > do > > this but I don't know what it's called and haven't run across an example > > that seems to do this. > > http://www.php.net/manual/function.dirname.php > http://www.php.net/manual/function.basename.php > > $PHP_SELF returns the name of the current file qualified from the webroot. > However, if you just want the name of the current file, __FILE__ is a > constant that will return the name of the current file. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#9608) next »