I know I can parse full url with parse_url in php, but my problem is when I have not full url ormat, how can I get domain name.
my urls are in 2 condtion sometimes in full path and sometimes in not full path,
as exampleblahblah.com/ddddd/fffff/a.php?ddddd
http://blahblah.com/ddddd/fffff/a.php?ddddd
I want it return me blahbla.com
my url is not browser url,treat them like a variable not current url