OK, played around with it more, I tried: $filename=strtolower($title); $filename=substr(str_replace(" ","_",$title),0,20).".html";
this makes the file name all lower case, but does not replace the spaces with underscores. If I do: $filename=substr(str_replace(" ","_",$title),0,20).".html"; $filename=strtolower($title); Then it does not make the names all lower case. How do I get it to do both? Thanks, Wretha Community email addresses: Post message: php-list@yahoogroups.com Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/