On Fri, May 22, 2009 at 1:36 PM, Dee Ayy <dee.ayy@xxxxxxxxx> wrote: > Acceptable results, but could be better. > > basename works correctly for only Safari (filenames with spaces are > correct). > FF truncates the name starting with the first space. > IE puts an underscore in place of a space. > > urlencode puts a plus sign in place of a space for all 3 browsers. > > But I've always had a note telling the user to rename the file to > something useful, so I'll keep basename and not check the agent. > > Thoughts? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > what about just CamelCasing the name? no spaces. -- Bastien Cat, the other other white meat