/etc/apache2.conf:
# LogLevel: Control the number of messages logged
# to the error_log.
# Possible values include: debug, info,
# notice, warn, error, crit, alert, emerg.
#
LogLevel warn
Aztán mégis:
PHP Warning: Invalid argument supplied for foreach() in xxx.php on line 23
PHP Notice: Undefined index: tg in xxx.php on line 9, referer: http://lo
- 104073 megtekintés
Hozzászólások
Ezt nem az apache mondja, hanem a PHP.
php.ini a te barátod.
- A hozzászóláshoz be kell jelentkezni
/etc/php5/apache2/php.ini:
; error_reporting
; Default Value: E_ALL & ~E_NOTICE
; Development Value: E_ALL | E_STRICT
; Production Value: E_ALL & ~E_DEPRECATED
error_reporting = E_ERROR ^ E_NOTICE
service apache2 restart
Gyorsítótár törlése, oldal újratöltése...
/var/log/apache2/error.log:
[error] [client 127.0.0.1] PHP Notice:
Undefined index: pg in /www/xxx/xxx.php on line 23,
referer: http://localhost/xxx/xxx.php?st=frameset&fs=frameset&tg=na&pg=na
xxx.php line 23:
if ($_GET['pg'] == "start") {
???
- A hozzászóláshoz be kell jelentkezni