root@in:/# ps aux | grep nginx root 3267 0.0 0.0 28724 824 ? Ss Sep22 0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf# ... root@in:/# cd /proc/3267/fd root@in:/proc/3267/fd# ls -l l-wx------ 1 root root 64 2010-12-02 14:52 2 -> /var/log/nginx/error.log ...
require_once("geoip/geoip.inc"); $gip = geoip_open("geoip/GeoIP.dat", GEOIP_STANDARD); echo geoip_country_name_by_addr($gip, $ip); geoip_close($gip);