View previous topic :: View next topic |
Author |
Message |
360N -
Joined: 29 Mar 2004 Posts: 2
|
Posted: Mon Mar 29, 2004 2:30 pm Post subject: alernative to $SERVER_ADDR or $_SERVER["SERVER_ADDR&quo |
|
|
why i cant get my server ip?
$_SERVER["SERVER_ADDR"] <~~ this is i think only for apache ?! ...
$SERVER_ADDR <~~ dont funct =(
is there another way how to get my server ip? or have i to chance something in my php ini? (PHP Version 4.3.5 - REGISTER GLOBALS = ON)
$REMOTE_ADDR <~~ runs =)
$_SERVER["SERVER_ADDR"] <~~ runs also =)
i hope you understand my problem (sry 4 my bad english ( german answers are welcome :D ) |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Mon Mar 29, 2004 3:54 pm Post subject: |
|
|
Their is a feature inside PHP Programming that
allows you to auto parse variables or to parse
them your self , for example. Look below
1.
$REMOTE_ADDR //IS NOT PARSED
2.
$_SERVER['REMOTE_ADDR'] //IS PARSED
If you want to use option 1 , you must
have Register Globals = on , in your php.ini
and that file is located in c:\windows
------------------------------------------------------------------------------------
Their is no $SERVER_ADDR in PHP !
Use this small script to find out all the functions in PHP Programming.
PHP Code:
Code: | <?php phpinfo(); ?> |
|
|
Back to top |
|
 |
|