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(̶…
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 RE…