__FILE__ is a constant predefined by PHP. See
http://www.php.net/manual/en/language.constants.php

For help on the basename() function, see
http://www.php.net/manual/en/function.basename.php

Kirk

> -----Original Message-----
> From: Fai [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 16, 2001 11:19 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] need help
> 
> 
> Can anybody tell me what does the following mean?
> 
> $path=substr(__FILE__, 0, strlen(__FILE__) - 
> strlen(basename(__FILE__)) -
> 1);
> 
> 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]

Reply via email to