Articles Tutorials Work at Home Entrepreneurs, Webmasters, Small Business Owners
Articles Tutorials Work at Home Entrepreneurs, Webmasters, Small Business Owners
Articles & Tutorials for Work at Home Entrepreneurs
Webmasters and Small Business Owners
Get More >

Newest Articles 
Search Engine Marketing
Internet Marketing
Affiliate Marketing
Email Marketing
Viral Marketing
Webmaster Resources
Business Resources
Make More Money
CSS
Web Design
Graphic Design
Color Theory
Product Reviews
Time Management
Business Ethics
Promotional Strategies
Glossary of Terms
Direct Mail Marketing
Telemarketing
Product Sourcing



Link to Us!

Web Design
Email this article  :  Printer friendly page

Displaying a Visitor's IP Number



Click Here to View Live Example
If you find a need to display your visitor's IP number on a web page, you will find it a snap to do. It can be done using SSI (server side includes) or PHP. You will need to be sure that your hosting service can support either language. During these days of modern techology most good hosting services can support both programming languages.

SSI

Place the following code in the location of your web page where you want the IP number to appear. Name your page with a .shtml extension.

<!--#echo var="REMOTE_ADDR"-->

PHP

Place the following code in the location of your web page where you want the IP number to appear. Name your page with a .php extension. (Some hosting companies may have a different extension requirement such as a .php3 extension. If it does not work, contact them to find out what extension to use.)

php echo $REMOTE_ADDR;

Copyright © 1994-2006 by BasicTips.com, a division of BasicTemplates.com, CSS HTML Web Site Templates with Exernal CSS and Removable Graphics. If you found our articles helpful, subscribe to our newsletter and get articles like this delivered to your inbox - FREE.

Order soon and get up to 5 FREE domains & more!
Host 6 Domains on 1 Account
5000MB and 400GB for $6.95 a month!

 

Page copy protected against web site content infringement by Copyscape
All articles are originally authored by BasicTemplates.com. Reprints in whole or in part are not permitted. See Copyright Notice

Copyright © 1994-2006 BasicTips.com, a division of BasicTemplates.com, Web Site Templates with External CSS
The Internet's #1 Choice for HTML CSS Web Templates via a Membership. Designed using External CSS and Removable, Swap-Out Graphics.
Basic Web Templates | Website Templates | HTML CSS Templates | Web Design Templates | Web Site Templates