d"
mailto:[EMAIL PROTECTED]
http://accessingram.com
-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 24, 2003 8:20 PM
To: Shahar Tal
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] function needed
function get_domain($domain){
preg_match(
function get_domain($domain){
preg_match('/^(www.)?([A-Za-z_-]+).+$/',$domain,$arr);
return $arr[2];
}
Shahar Tal wrote:
Hey
I'm looking and wondering for a function, as i'm trying to do something, and
here it is.
I'm using the SSI call :
.
to get the domain name I am on. this will outpu
.com
-Original Message-
From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 24, 2003 2:02 PM
To: 1LT John W. Holmes; heilo; [EMAIL PROTECTED]
Subject: Re: [PHP-DB] function needed
But what about www.domain.co.uk, you ask? Well, it'll fail with this. :)
Just filte
;
To: "heilo" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, January 24, 2003 1:58 PM
Subject: Re: [PHP-DB] function needed
> You could also use this:
>
> function getdomainname($name)
> {
> $parts = explode('.',$name);
> return $parts[c
ing:
www.domain.com
www.subdomain.domain.org
subdomain.domain.org
domain.museum
---John Holmes...
- Original Message -
From: "heilo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 24, 2003 1:27 PM
Subject: Re: [PHP-DB] function needed
> Hi!
>
>
inal Message-
From: heilo [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 24, 2003 1:27 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] function needed
Hi!
I hope I understood you right... I would use PCREs:
.ma
Shahar Tal <[EMAIL PROTECTED]> [EMAIL PROTECTED] 18:44 Uhr:
> Hey
Hi!
I hope I understood you right... I would use PCREs:
.ma
Shahar Tal <[EMAIL PROTECTED]> [EMAIL PROTECTED] 18:44 Uhr:
> Hey
>
> I'm looking and wondering for a function, as i'm trying to do something, and
> here it is.
>
> I'm using the SSI call :
> .
> to get the domain name I am on. th
--- Shahar Tal <[EMAIL PROTECTED]> wrote:
> Hey
>
> I'm looking and wondering for a function, as i'm trying to do
> something, and
> here it is.
>
> I'm using the SSI call :
> .
> to get the domain name I am on. this will output
>
> www.domain.com.
>
> I would like to use PHP in order to take
L PROTECTED]
> Subject: [PHP-DB] function needed
>
>
> Hey
>
> I'm looking and wondering for a function, as i'm trying to do
> something, and
> here it is.
>
> I'm using the SSI call :
> .
> to get the domain name I am on. this will output
>
Hey
I'm looking and wondering for a function, as i'm trying to do something, and
here it is.
I'm using the SSI call :
.
to get the domain name I am on. this will output
www.domain.com.
I would like to use PHP in order to take this string, the output, and cut
the "www." and the ".com" from it,
10 matches
Mail list logo