> Can anybody tell me what does the following mean?
>
> $path=substr(__FILE__, 0, strlen(__FILE__) - strlen(basename(__FILE__)) -
> 1);

It's silly code written by someone who doesn't realize that the dirname()
function exists.  dirname(__FILE__) would do exactly the same thing.  See
php.net/dirname

-Rasmus


-- 
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