[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 07-02-2005, 12:38 PM   #1 (permalink)
Awesome™
 
MasterB's Avatar
 
Join Date: May 2005
Location: Boston
Posts: 77
30.95 NP$ (Donate)

MasterB is on a distinguished road


Detecting Domain

Hey. I'm making a PHP script which will be distributed to many people. Long story short, I need the PHP script to be able to detect the domain name it's hosted on. I don't know how to go about doing this. It would be appreciated if someone could point me in the right direction of how this could be done. Thx in advance.
MasterB is offline  
Old 07-02-2005, 12:46 PM   #2 (permalink)
jdk
Senior Member
 
jdk's Avatar
 
Join Date: Jul 2004
Location: Florida
Posts: 1,223
306.40 NP$ (Donate)

jdk is a name known to alljdk is a name known to alljdk is a name known to alljdk is a name known to alljdk is a name known to alljdk is a name known to all


Why not just read in the nameservers? Or get the ip address it is hosted on?
__________________
All bids are valid for 24 hours unless otherwise stated.
jdk is offline  
Old 07-02-2005, 01:05 PM   #3 (permalink)
Awesome™
 
MasterB's Avatar
 
Join Date: May 2005
Location: Boston
Posts: 77
30.95 NP$ (Donate)

MasterB is on a distinguished road


Well I'm not going to be fully in control of who gets this software, but I have a licensing system where I will keep track of who has it. I'm not sure you fully understand what I need. I need the domain on which the script is hosted. So for example, if the script is on http://thesite.com/script/directory/, I need the script to extract the "thesite.com" part.
MasterB is offline  
Old 07-02-2005, 01:23 PM   #4 (permalink)
Senior Member
 
Join Date: Aug 2002
Posts: 1,300
2.85 NP$ (Donate)

deadserious has a spectacular aura aboutdeadserious has a spectacular aura about


$_SERVER['HTTP_HOST'] will get the hostname. http://us3.php.net/reserved.variables

Do you need to get it remotely, or?
deadserious is offline  
Old 07-02-2005, 01:26 PM   #5 (permalink)
Account Suspended
 
DJ_Guvana's Avatar
 
Join Date: Jun 2005
Posts: 520
0.00 NP$ (Donate)

DJ_Guvana is an unknown quantity at this point


You can do it the long way round and make sure people register befor they D/L the software. For this though you will need people to be constantly online. Prolly not the best idea, But hey, its one way of keeping your work under control
DJ_Guvana is offline  
Old 07-02-2005, 01:30 PM   #6 (permalink)
Awesome™
 
MasterB's Avatar
 
Join Date: May 2005
Location: Boston
Posts: 77
30.95 NP$ (Donate)

MasterB is on a distinguished road


Exactly the answer I needed deadserious. Works just like I needed . Help much appreciated.
MasterB is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Redemption Grace Period TopNames.com Domain Newbies 1 07-31-2007 11:04 AM
PPC Domain Manager Script Now Available! Cyphix Scripts For Sale 8 04-01-2005 01:50 AM
Class Action Settlement Against Register.com IAmAllanShore Domain Name Discussion 8 03-01-2005 02:13 PM

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 04:44 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85