Getting the Current Script’s Filename in PHP


Use basename(__FILE__) to get the current script’s filename.

Source Code

echo "Current script name: " . basename(__FILE__);
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments