Re: Script Name
| From: | Robert Cummings | Date: | Fri, 26 Nov 2004 14:55:05 +0000 |
| Subject: | Re: Script Name | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-202897@lists.php.net to get a copy of this message | ||
On Fri, 2004-11-26 at 09:46, John Nichel wrote:
> Jerry Swanson wrote:
> > What variable(parameter) in PHP stores file name?
> >
> > TH
>
> Stores what filename? The name of the file being executed?
>
> $_SERVER['SCRIPT_NAME']
Or if you want the name of the file included or whatnot...
__FILE__
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'