php get domain name only from tld

RegisterLogin
php get domain name only from tld
Post Description: php get domain name only from tld
Tags: php, get, domain, name, only, from, tld
This Post Was Posted On Feb 29, 2008 By web hosting #1328
im looking for a php script or class in php so that i can split my domain name.

for example, i have this:

$string = www.wallpaperama.com

and i only want

$string = wallpaperama

but i want the script to take into considration other tld like

$string = mail.www.wallpaperama.co.uk

how can i do this?
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
©2011 Webune Forums - Mon Dec 19, 2011 8:26 pm
Powered by: Webune Forums V3