.-INSANE-. Posted March 21, 2006 Share Posted March 21, 2006 [code]<?php $get = $REMOTE_ADDRecho Your IP is "$REMOTE_ADDR" !!!?>[/code]ok i was jus trying to see if i can sum of this stuff i kno its prolly wrong but what am i missing dont flame me im new to PHP Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted March 21, 2006 Share Posted March 21, 2006 No, REMOTE_ADDR is stored in the superglobal array $_SERVER and you don't have your quotes correct.Try:[code]<?php echo 'Your IP is ' . $_SERVER['REMOTE_ADDR'] .' !!!'; ?>[/code]Ken Quote Link to comment Share on other sites More sharing options...
.-INSANE-. Posted March 21, 2006 Author Share Posted March 21, 2006 ok so this is how its supposed to be now[code]<?php$get = $REMOTE_ADDRecho 'Your IP is ' . $_SERVER['REMOTE_ADDR'] .' !!!';?>[/code]cuz for sum reason the $get = $remote-addr part doesnt seem right is it? Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted March 21, 2006 Share Posted March 21, 2006 You don't need that line at all.Ken Quote Link to comment Share on other sites More sharing options...
.-INSANE-. Posted March 22, 2006 Author Share Posted March 22, 2006 ok i dont need the get parti thought i needed it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.