LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-22-2004, 12:08 AM   #1
vickr1z
Member
 
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:
Code:
_SERVER["HTTP_HOST"]= localhost
_SERVER["SERVER_ADDR"]=127.0.0.1
_SERVER["SERVER_NAME"]=172.12.0.204
Which file am i going to edit so i have both _SERVER["HTTP_HOST"], _SERVER["SERVER_ADDR"] and _SERVER["SERVER_NAME"] be equal to 172.12.0.204 ???

please help..
 
Old 10-26-2004, 10:16 AM   #2
looseCannon
Member
 
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:

http://us2.php.net/reserved.variables
 
  


Reply



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 08:37 PM
changing variables from background job bobwall Programming 2 06-18-2005 02:28 PM
PHP if statements and variables antken Programming 4 09-24-2003 12:45 PM
Passing variables in PHP???? vous Programming 3 03-20-2003 06:03 AM
php variables not being passed on tpat Linux - Software 1 01-11-2003 03:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:04 PM.

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