Domain Empire

Print the name of a file with out the path to it with PHP.

Spaceship Spaceship
Watch
Impact
6
If you throw this in a file named file.php it would print out file.php

<?php echo basename($_SERVER['PHP_SELF']) ; ?>

B-)
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back