<?php$full_name = "c:wampphpphp.ini";$base = basename($full_name); // $base is "php.ini"$dir = dirname($full_name);// $dir is "c:wampphp"?>