Getting Subdomain Name With PHP?


Posted on 16th Feb 2014 07:03 pm by admin

I want to grab the subdomain name with PHP so I can generate database queries.

for example my subdomain is san-jose.mydomain.com

Did you know?Explore Trending and Topic pages for more stories like this.
How would I go about grabbing the subdoman name with PHP? Thanks!
No comments posted yet

Your Answer:

Login to answer
256 Like 46 Dislike
Previous forums Next forums
Other forums

Mail form doesn't send Russian/Cyrillic characters correctly?
When someone enters foreign characters (like Cyrillic text, and Japanese/Chinese probably gives the

comparing tables across databases sql refinement ideas required
Hi all

Via pl/sql I need to ensure that data between tables in different databases match

temporary objects
Until now i thought every temporary object in C++ is created as constant. I'm wondering why my compi

PHP/Database issue
My friend is helping me make a database where you go to a certain webpage of my site and the page wi

Writing Windows Device Drivers with C
Yes: one of the nice features of C is void*. You can put anything there and get anything out. Very

first id from db not showing
I have a php script which displays the content of a mysql table as a html table with sorting, delete

extending tidy
I have problem with type-hinting and extending tidy. This code creates error:
Code: class cMyTidy

unexpected T_VARIABLE error
Hey all! I'm getting an unexpected T_VARIABLE with the following function:

function getHighes

Getting a variable to work in function params
I have this fuction which is inside a class:

Code: public static function generateEmbedCode($

j1inmis Ouput layout changes
Hi,

Can anybody tell how can j1inmis output layout can be changed so that vendor names ge

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash