How can I get php to tell me if a user types in the www part in their browser of if they just type in the domain mydomain.com
Examples: Users type in..
]I don't care about the http:// I also don't care about the /this_directory/this_file.php
I ONLY want to know if the user typed in either www OR mydomain.com OR www.mydomain.com How can I get php to tell me this?
Please help, please?