Re: get filename?
| From: | Wizaerd) | Date: | Tue, 20 Mar 2001 14:09:55 +0000 |
| Subject: | Re: get filename? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-44750@lists.php.net to get a copy of this message | ||
excuse my ignorance here, but is this a configurable options? Anytime I use $PHP_SELF, it strictly the directory and filename..
for example say I have a forum running at www.somedomain.com/forum/index?Message=12
my $PHP_SELF strictly gives me /forum/index.php. I know this for a fact because I use a hybrid of the CF coding style of fusebox, and all my form actions are set to $PHP_SELF and the $QUERY_STRING info is never appended to it...
At 09:05 AM 3/20/01 -0800, Data Driven Design wrote:
$PHP_SELF will be the filename including $QUERY_STRING and $PATH_INFO variables, $SCRIPT_NAME should be just the filename. ----- Original Message ----- From: <KPortsmout@aol.com> To: <php-general@lists.php.net> Sent: Tuesday, March 20, 2001 5:19 AM Subject: [PHP] get filename? Hi Whats the best method to get the filename of the file I am using. E.G if the file is called tom_woz_here.php and would I go about stickin that into $FileName= ??? Thanks -- 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 -- 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