Greetings, "Diogo Neves". In reply to Your message dated Friday, October 31, 2008, 20:08:25, > It depends on what he really want, but pathinfo really is a better option > My test worked perfectly on files with no extension and without name... File always have name. Extension is a part of it. > <?php > var_dump( pathinfo( '.htaccess' )); > var_dump( pathinfo( 'htaccess' )); > die( ); > ?> -- Sincerely Yours, ANR Daemon <anrdaemon@xxxxxxxxxxx> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php