How to display web servers IP address (and other info) in a web page
Sunday, August 5th, 2007This simple article will explain how you can display some commonly used information directly into a web page using the very popular PHP programming language.In order to run PHP scripts on your web site you must have the appropriate software installed and configured. Most hosting accounts will already have this available.
If the below examples do not work then you will need to install PHP support on your server or ask your hosting provider to do so.
When a web server serves data to a client there is a multitude of information available both about the server itself as well as the current client accessing the server.
This information is stored in PHP’s predefined variables. (more…)










