Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: .htaccess - output buffering
Forum PHP.pl > Forum > Serwery WWW
Athread
W jaki sposób mogę zmienić output buffering na OFF za pomocą .htaccess?
by_ikar
Kod
php_flag output_buffering Off

lub:
Kod
php_flag output_buffering 0
Athread
Cytat(by_ikar @ 1.03.2012, 16:55:11 ) *
Kod
php_flag output_buffering Off

lub:
Kod
php_flag output_buffering 0


Cytat
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@hostingXXXXXX.az.pl and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Cytat
[Thu Mar 01 17:15:35 2012] [error] [client IP] File does not exist: /home/XXXXXX/public_html/error
[Thu Mar 01 17:15:35 2012] [alert] [client IP] /home/XXXXXX/public_html/mc/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Thu Mar 01 17:13:54 2012] [error] [client IP] File does not exist: /home/XXXXXX/public_html/error
[Thu Mar 01 17:13:54 2012] [alert] [client IP] /home/XXXXXX/public_html/mc/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
by_ikar
Tak się ustawia te flagi. Ale widzę po hostingu, że to darmowy serwer, więc możesz mieć tam wyłączoną możliwość wyłączenia tego poprzez htacces, lub w ogóle wyłączony htaccess.
Athread
Cytat(by_ikar @ 1.03.2012, 19:43:06 ) *
Tak się ustawia te flagi. Ale widzę po hostingu, że to darmowy serwer, więc możesz mieć tam wyłączoną możliwość wyłączenia tego poprzez htacces, lub w ogóle wyłączony htaccess.


BUSINESS hosting na az.pl
Napisałem do supportu w jaki sposób mogę zmienić.

Na 1&1 oraz ovh również nie mogę zmienić output buffering, jest jakiś inny sposób w który mogę to zrobić ?
by_ikar
Zamiast:

Kod
php_flag output_buffering 0


Spróbuj:

Kod
SetEnv output_buffering 0


I sprawdź czy nadal będzie wywalać błąd. Jeżeli tak, to nie mam pojęcia co może być przyczyną. Pozostaje ci zmiana na poziomie php:

  1. ini_set('output_buffering', 0);


Tyle że, z tego co pamiętam buffor jest domyślnie wyłączony.. Więc po co ci go jeszcze raz wyłączać?
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.