?
Solved

Access virtualhost ServerName variable

Posted on 2005-04-24
2
Medium Priority
?
368 Views
Last Modified: 2006-11-18
How would I go about accessing the apache config ServerName variable in PHP?
0
Comment
Question by:phasevar
2 Comments
 
LVL 49

Accepted Solution

by:
Roonaan earned 2000 total points
ID: 13854218
You'd use $_SERVER['SERVER_NAME'];

-r-
0
 

Author Comment

by:phasevar
ID: 13854229
Thanks!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This article discusses how to create an extensible mechanism for linked drop downs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses
Course of the Month15 days, 12 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question