Seriously, how easy was that?!
This is just a simple bit of code, deployed from a repository on GitHub and a master branch to show you how you can be quickly up and running.
Test data from PHP
Your app is running on PHP version: 5.4.45--pl1-gentoo
The app IP is: 10.0.0.11
The client IP is : 188.8.131.52
Temp dir available to your app is: /tmp
Code from above
$version = phpversion();
$ip = $_SERVER["SERVER_ADDR"];
$ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
$temp = sys_get_temp_dir();