You were nearly there.
You started with $title, then to $filename, then back to $title.
Try this:
$filename=strtolower($title);
$filename=substr(str_replace(" ","_",$filename),0,20).".html";
Haven't been following this thread much.
Did you want the title to be cut to 20 characters, as this will do that?
Bob E.
----- Original Message -----
From: "W. Smith" <[EMAIL PROTECTED]>
> $filename=strtolower($title);
> $filename=substr(str_replace(" ","_",$title),0,20).".html";
Community email addresses:
Post message: [email protected]
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/