PHP: __FILE__

Exact meaning of basename(dirname(__FILE__)) in PHP

__FILE__ would give something like: “/home/httpd/html/modules/Your_Account/index.php”

dirname(__FILE__) gives “/home/httpd/html/modules/Your_Account”

basename(dirname(__FILE__)) gives “Your_Account”

Artikel terkait:   Show Total Weight in Woocommerce

Isi Komentar

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *

This site uses Akismet to reduce spam. Learn how your comment data is processed.