![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Whilst lounging around on Tue, 08 Jul 2003 03:47:11 GMT, "antonjamm" <news@vwgifts.com> amazingly managed to produce the following with their Etch-A-Sketch: > Is there a way to determine which domain name (i.e., > www.something1.com, or www.something2.com) that the user is coming > from so to be able to perform different queries on the database. > > Example: > > Database is on domain 1 and would like 2 other domains to be able > to access the database on that domain. > The content/database queries will be different throughout the site > depending on the domain the user has used. > > Hopefully that is clear is enough, unless there is another way to > connect to the database from the other domain. > > Thanks greatly in advance > > Check $_SERVER['HTTP_HOST']. This should give you the relevant domain =) Regards, Ian -----BEGIN PGP SIGNATURE----- Version: PGP 8.0 iQA/AwUBPwqiXmfqtj251CDhEQIaMgCg+WdAe7dRPBUjsgGPta688B ls8yMAnRs0 BpAc726WidOFEs4mZlDXC0jE =Z1jg -----END PGP SIGNATURE----- -- Ian.H [Design & Development] digiServ Network - Web solutions www.digiserv.net | irc.digiserv.net | forum.digiserv.net Programming, Web design, development & hosting. | |||
|
| Featured Websites | ||||
|
![]() |
| Tags: database, determining, domain, queries |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| satellite distance determining | va | GPS | 0 | 06-25-2007 11:17 PM |
| Car stereo queries. | blah | Car audio | 3 | 06-18-2007 11:42 AM |
| Correcting queries | James Walker | Database | 0 | 05-31-2007 8:37 PM |
| [PEPr] Database::FlatFile Database deleted | Ali Fazelzade | Pear | 0 | 05-20-2007 7:41 PM |
| Looking for any handy SQL queries | Whatcha | Database | 10 | 07-10-2006 6:59 AM |
| Featured Websites | ||||
|