Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- remove www. only if it exists


jd01 - 3:40 pm on Oct 2, 2009 (gmt 0)


You would probably use something like str_replace() or substr_replace() depending on your exact application... If you need to replace all sub domains, not just www you would probably have to graduate to preg_replace and stay away from ereg_replace it runs on a different regex engine than preg_replace and isn't anywhere near as fast.

[us2.php.net...]
[us2.php.net...]


Thread source:: http://www.webmasterworld.com/php/3999960.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com