經安全檢測,此網站為安全網站,請放心前往原始網址!

php - Get the current script file name - Stack Overflow

Just use the PHP magic constant... echo __FILE__;. to get the current filename. But it seems you want the part without .php . So... echo preg_replace('/\.php$/', '' ...

stackoverflow.com

網址安全性掃描由 google 提供