hallo nochmal!
hab vom hoster die rückmeldung bekommen dass ich dies in der php.ini ändern kann und zugriff darauf bekommen, aber das wars mit dem support.
Was muss ich nun in die php.ini hinzufügen um putenv() zu erlauben?
edit .. hab mal was versucht
folgendes ist aus der php.ini
Code:
;
; Safe Mode
;
safe_mode = Off
; By default, Safe Mode does a UID compare check when
; opening files. If you want to relax this to a GID compare,
; then turn on safe_mode_gid.
safe_mode_gid = Off
; When safe_mode is on, UID/GID checks are bypassed when
; including files from this directory and its subdirectories.
; (directory must also be in include_path or full path must
; be used when including)
safe_mode_include_dir =
; When safe_mode is on, only executables located in the safe_mode_exec_dir
; will be allowed to be executed via the exec family of functions.
safe_mode_exec_dir = /usr/bin/
; Setting certain environment variables may be a potential security breach.
; This directive contains a comma-delimited list of prefixes. In Safe Mode,
; the user may only alter environment variables whose names begin with the
; prefixes supplied here. By default, users will only be able to set
; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
;
; Note: If this directive is empty, PHP will let the user modify ANY
; environment variable!
safe_mode_allowed_env_vars = PHP_ TZ
; This directive contains a comma-delimited list of environment variables that
; the end user won't be able to change using putenv(). These variables will be
; protected even if safe_mode_allowed_env_vars is set to allow to change them.
safe_mode_protected_env_vars = LD_LIBRARY_PATH
die Zeile
Code:
safe_mode_allowed_env_vars = PHP_ TZ
hab ich mit ; auskommentiert und nun ist die fehlermeldung weg
ob das so gut und gscheit ist weiß ich nicht, vielleicht könnt ihr mir dazu eine Rückmeldung geben, falls ihr euch auskennt.
danke
Lesezeichen