Return to Snippet

Revision: 22010
at December 28, 2009 16:46 by chrisaiv


Initial Code
$file_info = pathinfo( __FILE__ );
echo $file_info['dirname'] . "<br />";
echo $file_info['basename'] . "<br />";
echo $file_info['filename'] . "<br />";
echo $file_info['extension'] . "<br />";

Initial URL

                                

Initial Description
Handy function that allows you get some data on a file

Initial Title
PHP: Finding information on a file

Initial Tags
php

Initial Language
PHP