一、dirname(__FILE__)
For example: where is the path a.php /var/www/web/a.php
dirname (__ FILE__) is returned / var / www / web /
二, __ DIR__
A.php value obtained is used __DIR__ / var / www / web /
一、dirname(__FILE__)
For example: where is the path a.php /var/www/web/a.php
dirname (__ FILE__) is returned / var / www / web /
二, __ DIR__
A.php value obtained is used __DIR__ / var / www / web /