Hi,
Thursday, August 28, 2003, 7:02:44 PM, you wrote:
>> str_replace('/www.','/',$parseddomain);
MJ> wont this just make me get a .com when I use my thing to parse the domain?
MJ> --
MJ> _______________________________________________
MJ> Get your free Verizonmail at www.verizonmail.com
No it should just get rid of the www so your left with domain.com
and now that I see what you are after it should have been:
$domain = str_replace('www.','',$domain);
and if you need the dot now add it in
$parseddomain = '.'.$domain;
No need for the preg_replace at all
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php