php get filename
<?php
$xmlFile = pathinfo('/usr/admin/config/test.xml');
function filePathParts($arg1) {
echo $arg1['dirname'], "n";
echo $arg1['basename'], "n";
echo $arg1['extension'], "n";
echo $arg1['filename'], "n";
}
filePathParts($xmlFile);
?>