RE: [PHP-DB] function needed

2003-01-30 Thread Gary . Every
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(

Re: [PHP-DB] function needed

2003-01-27 Thread Leif K-Brooks
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

RE: [PHP-DB] function needed

2003-01-24 Thread Ryan Marrs
.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

Re: [PHP-DB] function needed

2003-01-24 Thread 1LT John W. Holmes
; 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

Re: [PHP-DB] function needed

2003-01-24 Thread 1LT John W. Holmes
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! > >

RE: [PHP-DB] function needed

2003-01-24 Thread Ryan Marrs
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

Re: [PHP-DB] function needed

2003-01-24 Thread heilo
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

Re: [PHP-DB] function needed

2003-01-24 Thread Mark
--- 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

RE: [PHP-DB] function needed

2003-01-24 Thread Hutchins, Richard
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 >

[PHP-DB] function needed

2003-01-24 Thread Shahar Tal
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,