Hello, to all php guru out there. heheheh
i just like to asked for your help regarding parsing a domain i hope that you can help me with this..
i will give some of the examples that need to output on right way..
1. http://www.example.com/index.php
2. http://www.subdomain.example.com/index.php?cmd=1&page=2.......
3. www.example.com
4. subodomain.list1.example.com
5. www.example.com.au - needs to ouput example.com.au
All Output: example.com
Note that i need any tld i'm not specifiying one TLD or domain extensions.. and other thing is there are also 2 dot in tld like co.uk, com.ph and etc.... so i only need to get is the domain name..
I hope you can help me with this..
thanks
i just like to asked for your help regarding parsing a domain i hope that you can help me with this..
i will give some of the examples that need to output on right way..
1. http://www.example.com/index.php
2. http://www.subdomain.example.com/index.php?cmd=1&page=2.......
3. www.example.com
4. subodomain.list1.example.com
5. www.example.com.au - needs to ouput example.com.au
All Output: example.com
Note that i need any tld i'm not specifiying one TLD or domain extensions.. and other thing is there are also 2 dot in tld like co.uk, com.ph and etc.... so i only need to get is the domain name..
I hope you can help me with this..
thanks
