[PHP] Re: formatting a filename

2002-09-05 Thread Javier Montserat
$filename = strtolower (eregi_replace ("[^A-Za-z0-9_.]", "_", $filename)); seems to be what I want. thanks to everyone for the help Javier _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- PHP General

[PHP] Re: formatting a filename

2002-09-05 Thread nicos
You shouldn't use str_replace as he said, but preg_replace() or ereg_replace(), ereg are easier to use. take a look at www.php.net/ereg_replace . -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Javier Montserat" <[EMAIL PROTECTED]> a écrit dans le