Re: need help
| From: | Rasmus Lerdorf | Date: | Wed, 16 May 2001 17:12:50 +0000 |
| Subject: | Re: need help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-53073@lists.php.net to get a copy of this message | ||
> 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