I want to know which url is requested,
like test.com/bla.php or test.com/web.php so that I see bla.php and web.php
This is what I use at the moment, but is it safe?
Thanks in common,PHP Code:
$file = $_SERVER["SCRIPT_NAME"];
$break = Explode('/', $file);
$pfile = $break[count($break) - 1];