echo "FOLDER: ".substr($_SERVER['DOCUMENT_ROOT'], 0);
echo "
";
echo "FULL Path IN PHP :". $_SERVER['PHP_SELF'];
echo '
';
echo 'filename only :'.basename($_SERVER['PHP_SELF']); // $file is set to "index"
echo '
';
echo substr($_SERVER['PHP_SELF'], 0,(strlen($_SERVER['PHP_SELF'])-strlen(basename($_SERVER['PHP_SELF'])))); // Path Name Only in PHP
?>
ไม่มีความคิดเห็น:
แสดงความคิดเห็น