![]() |
|
#1
|
|||
|
|||
Domain to hostname script req.Hi
I am trying to do the following and hope you can help. I want people so they can put a domain in a form and it will result the hostname eg: input encoderx.co.uk and it will result/show uk6-u.valuehost.co.uk which is the hostname of my domain where my domain is held. Hope you understand and thank you encoderX.co.uk |
|
#2
|
||||
|
||||
|
Hello encoderX,
Good question... Maybe you can try this and see if it gives you the results that you expect... PHP Code:
Maybe there is a better way to do this but right now this is all I could figure out... also I see some excellent new functions to do just something like this in one line but that's in PHP 5! __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
|||
|
|||
|
Hi
The php code you kindly worked out does great - I can see this been solved I'd like it so the domain could be passed from a form input, I can see a light at the end of the tunnel... Do you have a link please to the php 5 that might work? I am greatful for your input so far. Kind regards. encoderX.co.uk |
|
#4
|
||||
|
||||
PHP 5 function: dns_get_record()An interesting function in PHP 5:
http://www.php.net/manual/en/functio...get-record.php I don't quite understand what you mean by: Quote:
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
NARMY by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP script to show last referrer url and top referrer to your site | jrobbio | MySQL / PHP Forum | 6 | 22-May-2006 01:06 |
| Where can I find web statistics script / software? | rhino1616 | Web Design Forum | 2 | 02-Jan-2004 20:31 |
| JavaScript Tutorial Part 1 | pcxgamer | Web Design Forum | 2 | 01-Dec-2003 09:16 |
| sms web sender script | jrobbio | MySQL / PHP Forum | 1 | 11-Apr-2003 12:19 |
| VALIDATING file types on an PHP upload script? | JdS | MySQL / PHP Forum | 0 | 02-Jan-2003 07:58 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The