Write a PHP script to get the current file name.
<?php $current_file_name = basename($_SERVER['PHP_SELF']); echo $current_file_name."\n"; ?>
Sample Output:
5c019960-58d0-11e7-8ce0-bdc69d807a6b.php
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer