$PHP_SELF will give you the file name rlative to your Document Root

http://www.php.net/manual/language.variables.predefined.php


Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com




-----Original Message-----
From: John LYC [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 12, 2001 2:23 PM
To: PHP List
Subject: [PHP] checking for presnet file name


is there a pre-defined variable that return present php file name...

for example...

url : www.domain.com/mypage.php

$var == "mypage";

????

thanks




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to