I'm currently learning PHP and from what I'm seeing $_SERVER ['SCRIPT_NAME']; contains the current script's path. However, any page I try to identify shows up as "/index.php".
For example, I will run this on about.php, but the results return "/index.php".
<?php
$current_file = $_SERVER['SCRIPT_NAME'];
echo $current_file;
?>
Obviously I'm missing something, but I don't see what it is.