I get a strange php error: Long explanation: I create a file hello.php in my webroot, having the content: <?php echo(“hello”); ?> I run this file in a browser, all is fine, it shows “hello” Now I edit this file so the content now is: <?php echo(“hello”); echo(“world”); ?> I run this edited file in a browser => The error
Tag: lighttpd
PHP: getting user’s IP address using lighttpd
I tried this function but this always return the host/website’s IP address instead of the user’s IP any idea why and how to fix it? the website is not hosted on localhost and I’m using lighttpd to host the website Answer lighttpd provides the remote address in the CGI environment variable REMOTE_ADDR. lighttpd does not set HTTP_CLIENT_IP unless the request