this used to work on my site but strangely it doesnt work anymore
i have a stats menu where it shows some stats including your IP i am using this code but it wont work anymore:
<!--#echo var="REMOTE_ADDR " -->
anybody know whats going on?
Printable View
this used to work on my site but strangely it doesnt work anymore
i have a stats menu where it shows some stats including your IP i am using this code but it wont work anymore:
<!--#echo var="REMOTE_ADDR " -->
anybody know whats going on?
:)HTML Code:<? echo "IP: $REMOTE_ADDR"; ?>
That never worked... :s
is it ment to be:
Code:<? #echo "IP: $REMOTE_ADDR"; ?>
Try <? #echo "IP: $ip = $_SERVER['REMOTE_ADDR']"; ?>Quote:
Originally Posted by L@c0ste
Its either that or your hosting dont allow it..Quote:
<!--#echo var="REMOTE_ADDR" -->
i can't see why it didn't work, Thats the usual 1, right?
Mines the oriiginal, to get code on CPanel go to errors page and make the code of show users IP?Quote:
Originally Posted by simplesimon12
the usual one i use was my original one it worked for ages then one day i edited the page and it never worked again.
None of them worked :eusa_doh:
Edited by Kroziun (Forum Moderator): Please don’t double post, simply edit your previous post.
Lol fixed now ;)
What IS the code?
<!--#echo var="REMOTE_ADDR " -->
is using SSI, this usealy only works on pages with the shtml exsention.
<? #echo "IP: $ip = $_SERVER['REMOTE_ADDR']"; ?>
is php, an only works on php pages, athogh wouldnt work as # woul convernt the rest of the line in to a comment "/
will any of them workon FrontPage?
If you save your file as PHP or shtml, yesQuote:
Originally Posted by Rob
Yes and your server will need to support PHP i think
YesQuote:
Originally Posted by Anderman
If you save it as PHP, make sure your host supports PHP
LOl ;D Nice Scritts
You aslo need your sever to support ssi to use that, athogh most do "/
Most Paid Do, Free Hardly Ever
to use the <!-- one save the page as .shtml :)