Get file informations from path using php
by satheeshkumar[ Edit ] 2012-07-06 16:30:38
The following code is used to get directory name,base name and file name using php,
$filepath = pathinfo('/www/example/inc/ex.fc.doc');
echo $filepath['dirname'], "n";
echo $filepath['basename'], "n";
echo $filepath['filename'], "n";
?>