Jednak odswieżam stronę, zresetowalem webserv i dalej mi zapsiuje noticy )pod skryptem)
//WYLACZYC NOTICE'y niby wylaczone /* we will do our own error handling. */ /* user defined error handling function. */ function userErrorHandler($errno, $errmsg, $filename, $linenum, $vars) { // timestamp for the error entry. // define an assoc array of error string // in reality the only entries we should // consider are E_WARNING, E_NOTICE, E_USER_ERROR, // E_USER_WARNING and E_USER_NOTICE. E_ERROR => 'Error', E_WARNING => 'Warning', E_PARSE => 'Parsing Error', E_NOTICE => 'Notice', E_CORE_ERROR => 'Core Error', E_CORE_WARNING => 'Core Warning', E_COMPILE_ERROR => 'Compile Error', E_COMPILE_WARNING => 'Compile Warning', E_USER_ERROR => 'User Error', E_USER_WARNING => 'User Warning', E_USER_NOTICE => 'User Notice', E_STRICT => 'Runtime Notice' ); // set of errors for which a var trace will be saved. $user_errors = array(E_USER_ERROR, E_ERROR); // wyjebalem , E_USER_WARNING, E_USER_NOTICE dodalem E_ERROR $err = "<errorentry>\n"; $err .= "\t<datetime>" .$dt. "</datetime>\n"; $err .= "\t<errornum>" .$errno. "</errornum>\n"; $err .= "\t<errortype>" .$errortype[$errno]. "</errortype>\n"; $err .= "\t<errormsg>" .$errmsg. "</errormsg>\n"; $err .= "\t<scriptname>" .$filename. "</scriptname>\n"; $err .= "\t<scriptlinenum>" .$linenum. "</scriptlinenum>\n"; $err .= "\t<vartrace>" .wddx_serialize_value($vars, 'Variables'). "</vartrace>\n"; } $err .= "</errorentry>\n\n"; // save to the error log file, and e-mail me if there is a critical user error. if ($errno == E_USER_ERROR) { } }
Co w pliku:
2013-06-15 11:46:58 (CEST) 8 Notice Undefined variable: _SESSION C:\WebServ\httpd\sciezka\m.php 214 2013-06-15 11:46:58 (CEST) 8 Notice Undefined index: hash C:\WebServ\httpd\sciezka\m.php 215 2013-06-15 11:46:58 (CEST) 8 Notice Use of undefined constant PHP_SELF - assumed 'PHP_SELF' C:\WebServ\httpd\sciezka\m.php 271 2013-06-15 11:46:58 (CEST) 8 Notice Undefined variable: error C:\WebServ\httpd\sciezka\m.php 316 2013-06-15 11:46:58 (CEST) 8 Notice Undefined variable: wyniki C:\WebServ\httpd\sciezka\m.php 317 2013-06-15 11:46:58 (CEST) 8 Notice Use of undefined constant ?appId? - assumed '?appId?' C:\WebServ\httpd\naoq76\index.php 74 2013-06-15 11:46:58 (CEST) 8 Notice Use of undefined constant ?secret? - assumed '?secret?' C:\WebServ\httpd\naoq76\index.php 75 2013-06-15 11:46:58 (CEST) 8 Notice Use of undefined constant ?fileUpload? - assumed '?fileUpload?' C:\WebServ\httpd\naoq76\index.php 76 2013-06-15 11:47:05 (CEST) 8 Notice Undefined variable: HTTP_SERVER_VARS C:\WebServ\httpd\sciezka\b.php 32 2013-06-15 11:47:05 (CEST) 8 Notice Undefined index: plik C:\WebServ\httpd\sciezka\admin\admin.php 87 2013-06-15 11:47:05 (CEST) 8 Notice Undefined index: plik C:\WebServ\httpd\sciezka\admin\admin.php 88 2013-06-15 11:47:05 (CEST) 8 Notice Undefined index: plik C:\WebServ\httpd\sciezka\admin\admin.php 89 2013-06-15 11:47:05 (CEST) 8 Notice Undefined offset: 0 C:\WebServ\httpd\sciezka\admin\admin.php 336 2013-06-15 11:47:05 (CEST) 8 Notice Undefined offset: 1 C:\WebServ\httpd\sciezka\admin\admin.php 336 2013-06-15 11:47:05 (CEST) 8 Notice Undefined offset: 2 C:\WebServ\httpd\sciezka\admin\admin.php 336 2013-06-15 11:47:05 (CEST) 8 Notice Undefined offset: 3 C:\WebServ\httpd\sciezka\admin\admin.php 336 2013-06-15 11:47:05 (CEST) 8 Notice Undefined offset: 4 C:\WebServ\httpd\sciezka\admin\admin.php 336 2013-06-15 11:47:05 (CEST) 8 Notice Undefined offset: 5 C:\WebServ\httpd\sciezka\admin\admin.php 336 2013-06-15 11:47:05 (CEST) 8 Notice Undefined offset: 6 C:\WebServ\httpd\sciezka\admin\admin.php
Plik byl oczywiscie czyszczony po przeprowadzonych operacjach.
Rozumiem rowniez ze moglbym przebudowac skrypty tak aby te notice'y sie nie pojawialy (sa to skrypty na ktorych zaczynalem nauke) ale spelniaja swoje funkcje bede staral sie nowe pisac dokladniej znajac te doswiadczenia a do tamtych kiedys wroce.
bede wdzieczny za pomoc, bo nie mam po prostu pomysłów o co ho