Comments on: 2 Methods for Finding File Extensions in PHP http://blog.zurka.us/2-methods-for-finding-file-extensions-in-php/ Just another WordPress weblog Mon, 20 May 2013 11:30:55 +0000 hourly 1 http://wordpress.org/?v=3.6 By: nasal http://blog.zurka.us/2-methods-for-finding-file-extensions-in-php/comment-page-1/#comment-293 nasal Thu, 26 Feb 2009 00:34:54 +0000 http://blog.zurka.us/?p=859#comment-293 Thanks for the input, didn’t know about this one!

]]>
By: Ric http://blog.zurka.us/2-methods-for-finding-file-extensions-in-php/comment-page-1/#comment-292 Ric Wed, 25 Feb 2009 21:55:32 +0000 http://blog.zurka.us/?p=859#comment-292 How about PHP’s pathinfo function? That will give you an associative array, with dirname, basename, extension and filename.

]]>
By: Tim http://blog.zurka.us/2-methods-for-finding-file-extensions-in-php/comment-page-1/#comment-291 Tim Wed, 25 Feb 2009 20:51:25 +0000 http://blog.zurka.us/?p=859#comment-291 $ext = pathinfo(‘something.jpg’, PATHINFO_EXTENSION);

]]>