It looks like you're new here. If you want to get involved, click one of these buttons!
<?php $ip = $_SERVER['REMOTE_ADDR'];?>
<?php echo $ip;?>
WatchOut wrote: » 1) With javascript... Insert this code into your own code: <script type="text/javascript" src="http://showip.net/show_ip.js"></script> If you wish to set the text color the code should look like this: <script type="text/javascript"> showip_fontColor = 'fffffff'; </script> <script type="text/javascript" src="http://showip.net/show_ip.js"></script> Change ffffff to the color you want. 2) With an iframe... Insert this code into your own code: <iframe style="border:0; margin:0; padding:0; width:110px; height:22px;" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" src="http://showip.net/showip_ext.php"></iframe> If you wish to set the text color for this one, your code should look like this: <iframe style="border:0; width:110px; height:22px;" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" src="http://showip.net/showip_ext.php?fontColor=ffffff"> </iframe> Again - change ffffff to the color you want
[B]MSN: xPureNLx@gmail.com[/B]
MGDesigns wrote: » Yep, PHP Within the HEAD of document <?php $ip = $_SERVER['REMOTE_ADDR'];?> Within BODY of document <?php echo $ip;?> I'm think, but I'm sure there are plenty of PHP Guru's in here that will know of better/different ways
<?php echo $_SERVER['REMOTE_ADDR']; ?>
Comments
Within the HEAD of document Within BODY of document I'm think, but I'm sure there are plenty of PHP Guru's in here that will know of better/different ways
-
ModGirl Design
My ArtWanted Portfolio
Renderosity Gallery
WWWC Photoshop & Bryce Tutor
Founder of TWInc
Profession: KMA
I am not a purple people eater
-
ModGirl Design
My ArtWanted Portfolio
Renderosity Gallery
www.computerforumz.com
-
ModGirl Design
My ArtWanted Portfolio
Renderosity Gallery
Insert this code into your own code:
<script type="text/javascript" src="http://showip.net/show_ip.js"></script>
If you wish to set the text color the code should look like this:
<script type="text/javascript">
showip_fontColor = 'fffffff';
</script>
<script type="text/javascript" src="http://showip.net/show_ip.js"></script>
Change ffffff to the color you want.
2) With an iframe...
Insert this code into your own code:
<iframe style="border:0; margin:0; padding:0; width:110px; height:22px;" frameborder="0"
marginwidth="0" marginheight="0"
vspace="0" hspace="0"
allowtransparency="true" scrolling="no"
src="http://showip.net/showip_ext.php"></iframe>
If you wish to set the text color for this one, your code should look like this:
<iframe style="border:0; width:110px; height:22px;" frameborder="0"
marginwidth="0" marginheight="0"
vspace="0" hspace="0"
allowtransparency="true" scrolling="no"
src="http://showip.net/showip_ext.php?fontColor=ffffff"> </iframe>
Again - change ffffff to the color you want
www.computerforumz.com
No offense, your iFrame is just calling another script (twice):
src="http://showip.net/showip_ext.php">
src="http://showip.net/showip_ext.php?fontColor=ffffff">
I'd say, use the PHP variant MG added. This one is relatively reliable and it does not depend on 3d party scripts like the iFrame one does.
I'm just a little familiar with the Javascript-variant, but I can imagine you don't want to use it^^.
Hope this helps,
- xPureNLx
www.computerforumz.com
- xPureNLx
www.computerforumz.com
- xPureNLx
www.computerforumz.com
you don't have to put the code in the header first... you can simply put the following single line anywhere you want in your php document:
www.computerforumz.com