[imp] Cut $SERVER_NAME string

Brent J. Nordquist bjn@horde.org
Tue, 19 Jun 2001 06:34:34 -0500 (CDT)


On Mon, 18 Jun 2001, Alonso Téllez <eyailsys9@yahoo.com> wrote:

> How, I can to clear the text before the last dot (Right to left)? for
> example, to webmail.my-domain.com, (clear "webmail.") and just have
> "my-domain.com", or with subhost.webmail.my-domain.com, clear
> "subhost." and get webmail.my-domain.com

It sounds like you're asking a PHP question.  If so, I think what you want
is the PHP explode() function:

http://www.php.net/manual/en/function.explode.php

-- 
Brent J. Nordquist <bjn@horde.org> N0BJN
Yahoo!: Brent_Nordquist / AIM: BrentJNordquist / ICQ: 76158942