<?php include("Classdomain.php"); $myurl = "http://www.phpclasses.org/browse/package/3534.html"; $mydom = new getDomain; $domainname = $mydom -> url($myurl); print("Domain name is : ".$domainname); ?>