Nowe posty

Autor Wątek: PHP5 Apache 2.2 i brak błędów...  (Przeczytany 3004 razy)

tomus90

  • Gość
PHP5 Apache 2.2 i brak błędów...
« dnia: 2007-04-09, 21:46:31 »
Spokojnie nie chce się chwalić tylko zapytać jak włączyć wyświetlanie błędów przez serwer (chodzi mi tutaj o błąd w przypadku np.: nie wstawienie ';' na końcu funkcji). Edytowałem pliki  /etc/php5/apache2/php.ini i etc/php5/cli/php.ini (-display_errors = On) ale to nic nie dało...W Google też nic ciekawego na ten temat nie znalazłem ;( Apacha i PHP mam z płytki instalacyjnej openSuSE 10.2.

EOT

Małolat

  • Gość
PHP5 Apache 2.2 i brak błędów...
« Odpowiedź #1 dnia: 2007-04-09, 22:51:06 »
2007-04-09 21:46:31 tomus90 napisał:  
 >( Apacha i PHP mam z płytki instalacyjnej
 > openSuSE 10.2.
 >
 > EOT


Już wiemy dlaczego SUSE cieszy się taką bezawaryjnością...

tomus90

  • Gość
PHP5 Apache 2.2 i brak błędów...
« Odpowiedź #2 dnia: 2007-04-09, 23:02:16 »
2007-04-09 22:51:06 Małolat napisał:

> 2007-04-09 21:46:31 tomus90 napisał:  
 >  >( Apacha i PHP mam z płytki instalacyjnej
 >  > openSuSE 10.2.
 >  >
 >  > EOT
 >
 >
 > Już wiemy dlaczego SUSE cieszy się taką bezawaryjnością...


i dzięki twojemu postowi nagle zaczęło mi wszystko działać cud?? nie ściema tak jak twoja teoria... Czekam na bardziej kompetentną odpowiedź od kompetentnej osoby...TIA ;)


ps a w ogóle wiesz co znaczą skróty EOT, TIA itp.?? bo szczerze wątpię... Jeśli moje przypuszczenia są prawdziwe zapoznaj się z netykietą, a potem ogłaszaj swoje "przepowiednie" w necie...

olka

  • Gość
PHP5 Apache 2.2 i brak błędów...
« Odpowiedź #3 dnia: 2007-04-10, 15:23:41 »
2007-04-09 21:46:31 tomus90 napisał:

>  Edytowałem pliki
 > /etc/php5/apache2/php.ini i etc/php5/cli/php.ini (-display_errors = On) ale to nic nie dało...

Poziom error_reporting masz ustawiony?:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; error_reporting is a bit-field.  Or each number up to get desired error
; reporting level
; E_ALL             - All errors and warnings
; E_ERROR           - fatal run-time errors
; E_WARNING         - run-time warnings (non-fatal errors)
; E_PARSE           - compile-time parse errors
; E_NOTICE          - run-time notices (these are warnings which often result
;                     from a bug in your code, but it's possible that it was
;                     intentional (e.g., using an uninitialized variable and
;                     relying on the fact it's automatically initialized to an
;                     empty string)
; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
;                     initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR      - user-generated error message
; E_USER_WARNING    - user-generated warning message
; E_USER_NOTICE     - user-generated notice message
;
; Examples:
;
;   - Show all errors, except for notices
;
error_reporting = E_ALL & ~E_NOTICE
;
;   - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
;   - Show all errors except for notices
;
error_reporting  =  E_ALL & ~E_NOTICE

; Print out errors (as a part of the output).  For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below).  Keeping display_errors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
display_errors = On

; Even when display_errors is on, errors that occur during PHP's startup
; sequence are not displayed.  It's strongly recommended to keep
; display_startup_errors off, except for when debugging.
display_startup_errors = Off

; Log errors into a log file (server-specific log, stderr, or error_log (below))
; As stated above, you're strongly advised to use error logging in place of
; error displaying on production web sites.
log_errors = Off

; Store the last error/warning message in $php_errormsg (boolean).
track_errors = Off

; String to output before an error message.
;error_prepend_string = ""

; String to output after an error message.
;error_append_string = "
"

; Log errors to specified file.
;error_log = filename

; Log errors to syslog (Event Log on NT, not valid in Windows 95).
;error_log = syslog

; Warn if the + operator is used with strings.
warn_plus_overloading = Off
-plik konfiguracyjny z windowego apacha (wybaczcie, wybaczcie)

pozdrawiam
olka

tomus90

  • Gość
PHP5 Apache 2.2 i brak błędów...
« Odpowiedź #4 dnia: 2007-04-11, 21:11:21 »
2007-04-10 15:23:41 olka napisał:

> 2007-04-09 21:46:31 tomus90 napisał:
 >
 > >  Edytowałem pliki
 >  > /etc/php5/apache2/php.ini i etc/php5/cli/php.ini (-display_errors = On) ale to nic nie
 > dało...
 >
 > Poziom error_reporting masz ustawiony?:
 >
 >
 > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 > ; Error handling and logging ;
 > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 >
 > ; error_reporting is a bit-field.  Or each number up to get desired error
 > ; reporting level
 > ; E_ALL             - All errors and warnings
 > ; E_ERROR           - fatal run-time errors
 > ; E_WARNING         - run-time warnings (non-fatal errors)
 > ; E_PARSE           - compile-time parse errors
 > ; E_NOTICE          - run-time notices (these are warnings which often result
 > ;                     from a bug in your code, but it's possible that it was
 > ;                     intentional (e.g., using an uninitialized variable and
 > ;                     relying on the fact it's automatically initialized to an
 > ;                     empty string)
 > ; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
 > ; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
 > ;                     initial startup
 > ; E_COMPILE_ERROR   - fatal compile-time errors
 > ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
 > ; E_USER_ERROR      - user-generated error message
 > ; E_USER_WARNING    - user-generated warning message
 > ; E_USER_NOTICE     - user-generated notice message
 > ;
 > ; Examples:
 > ;
 > ;   - Show all errors, except for notices
 > ;
 > error_reporting = E_ALL & ~E_NOTICE
 > ;
 > ;   - Show only errors
 > ;
 > ;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
 > ;
 > ;   - Show all errors except for notices
 > ;
 > error_reporting  =  E_ALL & ~E_NOTICE
 >
 > ; Print out errors (as a part of the output).  For production web sites,
 > ; you're strongly encouraged to turn this feature off, and use error logging
 > ; instead (see below).  Keeping display_errors enabled on a production web site
 > ; may reveal security information to end users, such as file paths on your Web
 > ; server, your database schema or other information.
 > display_errors = On
 >
 > ; Even when display_errors is on, errors that occur during PHP's startup
 > ; sequence are not displayed.  It's strongly recommended to keep
 > ; display_startup_errors off, except for when debugging.
 > display_startup_errors = Off
 >
 > ; Log errors into a log file (server-specific log, stderr, or error_log (below))
 > ; As stated above, you're strongly advised to use error logging in place of
 > ; error displaying on production web sites.
 > log_errors = Off
 >
 > ; Store the last error/warning message in $php_errormsg (boolean).
 > track_errors = Off
 >
 > ; String to output before an error message.
 > ;error_prepend_string = ""
 >
 > ; String to output after an error message.
 > ;error_append_string = "
"
 >
 > ; Log errors to specified file.
 > ;error_log = filename
 >
 > ; Log errors to syslog (Event Log on NT, not valid in Windows 95).
 > ;error_log = syslog
 >
 > ; Warn if the + operator is used with strings.
 > warn_plus_overloading = Off
 >
> -plik konfiguracyjny z windowego apacha (wybaczcie, wybaczcie)
 >
 > pozdrawiam
 > olka

niestety nadal nic...

tomus90

  • Gość
PHP5 Apache 2.2 i brak błędów...
« Odpowiedź #5 dnia: 2007-04-12, 17:47:41 »
już wiem ;)
zmieniłem konfiguracje zaczynające sie od ';' średników - błąd bo to komentarz
jeśli ktoś będzie miał podobny problem niech szuka
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;   Error handlink and logging  ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
a dopiero po tym zmienia konfiguracje :)

Pozdrawiam

olka

  • Gość
PHP5 Apache 2.2 i brak błędów...
« Odpowiedź #6 dnia: 2007-04-12, 21:24:39 »
2007-04-12 17:47:41 tomus90 napisał:

> już wiem ;)
 > zmieniłem konfiguracje zaczynające sie od ';' średników - błąd bo to komentarz
 > jeśli ktoś będzie miał podobny problem niech szuka
 > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 > ;;   Error handlink and logging  ;;
 > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 > a dopiero po tym zmienia konfiguracje :)
 >
 > Pozdrawiam



Heh, moja wina, myślałam, że to oczywiste :D

pozdrawiam
olka

tomus90

  • Gość
PHP5 Apache 2.2 i brak błędów...
« Odpowiedź #7 dnia: 2007-04-13, 15:52:53 »
2007-04-12 21:24:39 olka napisał:

> 2007-04-12 17:47:41 tomus90 napisał:
 >
 > > już wiem ;)
 >  > zmieniłem konfiguracje zaczynające sie od ';' średników - błąd bo to komentarz
 >  > jeśli ktoś będzie miał podobny problem niech szuka
 >  > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 >  > ;;   Error handlink and logging  ;;
 >  > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 >  > a dopiero po tym zmienia konfiguracje :)
 >  >
 >  > Pozdrawiam
 >
 >
 >
 > Heh, moja wina, myślałam, że to oczywiste :D
 >
 > pozdrawiam
 > olka




no wiesz pierwszy raz spotykam sie z takim sposobem zapisu komentarza
zawsze był /**/, #, // lub inne ze średnikiem w każdym bądź razie już działa :)