In short, phpinfo() prints this:
Environment
...
APACHE_LOG_DIR /var/log/apache2
...
$_ENV is empty.
getenv('APACHE_LOG_DIR') returns /var/log.
What I want is the value that phpinfo() returns. How do I get the actual location of the Apache logs? More specificaly, I want a directory that I can create a new file via error_log in.
The
variables_orderdetermines which superglobal gets created, as mentioned in the manual. TheEmust be present for$_ENVto get created.