Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-22-2004, 01:08 AM   #1
Registered: Mar 2004
Location: manila, philippines
Distribution: RH 7.3
Posts: 63

Rep: Reputation: 15
Exclamation changing php info variables??

good day to all.
can someone help me how to change my php information variables regarding _SERVER["HTTP_HOST"], _SERVER["SERVER_ADDR"] and _SERVER["SERVER_NAME"]??

at this time this wat i have:
_SERVER["HTTP_HOST"]= localhost
Which file am i going to edit so i have both _SERVER["HTTP_HOST"], _SERVER["SERVER_ADDR"] and _SERVER["SERVER_NAME"] be equal to ???

please help..
Old 10-26-2004, 11:16 AM   #2
Registered: Dec 2003
Location: Little Rock, AR
Distribution: Fedora Core 2, AIX, HP-UX, Solaris, Whitebox
Posts: 193

Rep: Reputation: 31
You don't modify files to change those settings. They have to do with how you are connecting with the server. Some of them come from the HEADER info for the page, others come from the WebServer you are using, and others come from the OS.

Check out the following link to see where they all come from:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Are PHP session variables held in memory when you leave a PHP site? Locura Programming 11 11-16-2008 09:37 PM
changing variables from background job bobwall Programming 2 06-18-2005 03:28 PM
PHP if statements and variables antken Programming 4 09-24-2003 01:45 PM
Passing variables in PHP???? vous Programming 3 03-20-2003 07:03 AM
php variables not being passed on tpat Linux - Software 1 01-11-2003 04:11 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:01 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration