i have a variable. it has an url. exmaple: $variable="http://www.phpbuilder.com/board/newthread.php?do=newthread&f=10"; or $variable="http://www.phpbuilder.com/";
i want to cut the server_name (domain) of this variable as result in this exmaple result must: www.phpbuilder.com
any one can help me?
Consider using [man]parse_url/man.