|
|
|
|
|
|
![]() |
#1 |
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
|
Getting the Hostname in PHP
I've been searching all day, trying different functions, regular expressions, etc., but nothing I've tried seems to work fully,
![]() so I've decided to let someone else have a go... What I want to do is check for uniqueness of the domain of a submitted site. I do not even want to allow subdomains. So far I have this: PHP Code:
There is an example at php.net to get the hostname: PHP Code:
So it is over to the PHP gurus at ![]() There is no rush on this, but if I could have a solution by Thursday 12th Oct, that would be great ![]() Note - As you may have guessed, the '$url_in_db' is stored in a MySQL table, in case a function exists in a query expression that I may have missed.
__________________
Playboy Webmasters - The name says it all! $35 per signup or 60% revshare. |
![]() |
![]() |
|
|