PHP snippets

 

To place any of the following snippets onto your web pages you must:

  1. Click within the area to be copied.
  2. Use the control "Ctrl" key and "C" key simultanously. That will save the snippet into the clickboard (Temporary memory of your computer)
  3. Now, place the cursor on the area of your document where you want to set the code.
  4. Use the control "Ctrl" key and "V" key simultaneously to paste it.
  5. That's it.

Get IP of visitor

Get IP

Get Server type

Get Server


Get Browser type

Get user


Display date

Example:

Sun 17 Feb, 2008

Date

To find out whether your server supports php, put the following code into a text editor (notepad, textpad, whatever) and save it as info.php. Upload it to your server and go to it from your browser. S'thing like http://your-site/info.php.

Example:

Can't provide example

Get info

How long does your webpage takes to load? Let's find out..Put the next code anywhere on your page where you want to view the information.

Get loading time


Indicates address your visitor came from.

Get referer