Re: [PHP] Dealing with spaces and punctuation in uploaded filenames (tjlq)

2002-07-13 Thread Jason Wong
On Sunday 14 July 2002 09:20, Tim Luoma wrote: > and this is what I was trying to use to remove the space and punctuation > (all one line, might wrap in email): > > $SAFEFILENAME = ereg_replace ("[[:punct:]]+[[:blank:]]+", "", $FILENAME); > > But that does not seem to be working, and I have not b

[PHP] Dealing with spaces and punctuation in uploaded filenames (tjlq)

2002-07-13 Thread Tim Luoma
I am using this basic example (from the manual iirc) for uploading files Upload this file: What I am trying to do then is to remove any spaces or punctuation that might be in the filename. This is what I am using for the filename: $FILENAME = $_FILES['userfile']['name']; and