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 message de news: [EMAIL PROTECTED] > i want to format the filename of an uploaded file as follows :- > > -- replace blankspace with "_" > > -- remove any illegal characters. > > Which string functions should I use to do this? > > Thanks, > > Javier > > > > _________________________________________________________________ > Join the world's largest e-mail service with MSN Hotmail. > http://www.hotmail.com > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php