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

Tree Menu
Hi guys,

Can anyone help me making a tree navigation system? I have a site where I'm allowin

extract data
Code: <div class="post hentry uncustomized-post-template">

PHP code needed to get/post form fields and request mysql query results.
I'm new to PHP

I've created an html form to allow the user to request a basic telephone dire

PHP Login
Hey!
I got this shopcart code online, am trying to modify it but am getting an error when i try a

Login page problems
I developed a website a few months ago and I am now having an issue with logging into it. The place

Business Health Check
Hello

I need to create an online business health check for a client it will be multiple choi

extract a file from zip file
hi,
i know how to unzip a zip file in php, but is there a way to just extract a certain file only

ORA-01655: unable to extend cluster SYS.C_FILE#_BLOCK# by 128
Hi all,

Oracle 10g. Linux.

I'm facing the below error while trying to import a dumpfil

server trace logs
could any one tell me from where do i get error logs in xMII??I want to check the reason for dtabase

Session is not saving
I am not trying to do anything too fancy, I am just trying to get some $_SESSION data to save and us

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