PHP IP

------------------------------------
PHP IP address function:
<?php 
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
 $ip=$_SERVER['HTTP_CLIENT_IP'];}
 elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
 $ip=$_SERVER['HTTP_X_FORWARDED_FOR'];} else {
 $ip=$_SERVER['REMOTE_ADDR'];}
?>
------------------------------------

SAD conclusion: 
- Google sites and API are too restrictive to do anything interesting.

This is an experimental page for testing programmable features on google sites. Included are examples of CSS, Javascript, PHP (not certain it works yet), etc.

----------------------------------------------------------------------------------------------















----------------------------------------------------------------------------------------------















----------------------------------------------------------------------------------------------

Run and Apps Script from a link


Code sources for the HTML box above:

- Google sites tutorial on scripting: https://support.google.com/sites/answer/2500646?hl=en
- About style, DIV, etc: long_url 
- Get a user's IP in analytics with PHP: long_URL
- Add web tracking to your site: long_URL



Comments