Hello,
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?
PHP Code:
<?php
$file 
$_SERVER["SCRIPT_NAME"];
$break Explode('/'$file);
$pfile $break[count($break) - 1]; 
echo 
$pfile;
?>
Thanks in common,
David