I'm struggling with the words that have spaces in it. I want spaces to be converted/replaced with '_'.
=========
Examples:
=========
Product Page-
Actual Link: /Google Clone PHP/i_3.html
Should be: /Google_Clone_PHP/i_3.html
Category Page-
Actual Link: /CGI & Perl/cat_6.html
Should be: /CGI_&_Perl/cat_6.html
I tried using the php code that I found from one of those webmaster forums:
PHP Code:
$name = str_replace ( ' ', '_', $name );
but nothing changed. There was no information about what I'm suppose to do with $name and where the code should be placed in.
__________________
Dummie Dude
Last edited by dummie84 : 04-12-2008 at 12:06 AM.
|