Is there a reference to the specific syntax available to Windows based versions of php vs Linux based versions if any?
for example
The function 'getenv' does not work if your Server API is ASAPI (IIS).
So, try to don't use getenv('REMOTE_ADDR'), but $_SERVER["REMOTE_ADDR"].
Best Regards,
Brandon