alernative to $SERVER_ADDR or $_SERVER["SERVER_ADDR&quo

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
360N
-


Joined: 29 Mar 2004
Posts: 2

PostPosted: Mon Mar 29, 2004 2:30 pm    Post subject: alernative to $SERVER_ADDR or $_SERVER["SERVER_ADDR&quo Reply with quote

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 View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Mon Mar 29, 2004 3:54 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group