PHP General tips

Logging

# send logs to STDOUT
error_log("Oracle database not available!", 0); 

# log an object as string
error_log(print_r($_SERVER, true), 0);
error_log(print_r($variable, TRUE));
# Search for the php.ini file
php -i | grep Loaded