.-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 Link to comment https://forums.phpfreaks.com/topic/5389-is-this-right/ 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 Link to comment https://forums.phpfreaks.com/topic/5389-is-this-right/#findComment-19228 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? Link to comment https://forums.phpfreaks.com/topic/5389-is-this-right/#findComment-19231 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 Link to comment https://forums.phpfreaks.com/topic/5389-is-this-right/#findComment-19232 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 Link to comment https://forums.phpfreaks.com/topic/5389-is-this-right/#findComment-19564 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.