Mike --
...and then CollegeSucks.com Mike said...
%
% Quick question...
Quick answer :-)
%
...
%
% $parseddomain = preg_replace('/.+?(\..+)/', '$1', $domain);
# pulls out "domain" from
# domain.com
# www.domain.com
# www.domain.ac.uk
# ...
$this_domain = preg_replace('/(
> So why does college suck? Afraid of learning?
Feel free to ask me off the list and I'll explain why I started the site.
Thanks for the code. Anyway way of making it one line and with the leading "."?
J.
--
___
Get your free Verizonmail at www.veriz
So why does college suck? Afraid of learning?
Anyway, you can solve your problem by simple parsing. An example is below.
This will result in "edmondpaper.com"
Obviously there are ways of refining this further, but if college
sucks, you might not be interested in learning more :-).
At 3:30 A
> str_replace('/www.','/',$parseddomain);
wont this just make me get a .com when I use my thing to parse the domain?
--
___
Get your free Verizonmail at www.verizonmail.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: htt
Hi,
Thursday, August 28, 2003, 6:30:44 PM, you wrote:
CcM> Quick question...
CcM> I parse domains in my scripts like this to get the .domain.com out of
www.domain.com. However, if someone visits my site with just domain.com in the url, I
get .com back as the parsed domain.
CcM> How can I make i
5 matches
Mail list logo