get php path code example
Example 1: php get url path name
parse_url( $_SERVER[ 'REQUEST_URI' ], PHP_URL_PATH );
Example 2: php get filetype
<?php
echo filetype('/etc/passwd'); // file
echo filetype('/etc/'); // dir
?>
parse_url( $_SERVER[ 'REQUEST_URI' ], PHP_URL_PATH );
<?php
echo filetype('/etc/passwd'); // file
echo filetype('/etc/'); // dir
?>