Get Current File Relative Page

$root = dirname(dirname(dirname(__FILE__)));//Depends on how many levels to the root
$self = str_replace($root, '', __FILE__);
$self = str_replace ( '\\', '/', $self);