A snip-it of PHP to strip off the file extension.  So for example, to remove the .gif in mypic.gif