Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> .htaccess - output buffering
Athread
post
Post #1





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 13.06.2011

Ostrzeżenie: (0%)
-----


W jaki sposób mogę zmienić output buffering na OFF za pomocą .htaccess?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 5)
by_ikar
post
Post #2





Grupa: Zarejestrowani
Postów: 1 798
Pomógł: 307
Dołączył: 13.05.2009
Skąd: Gubin/Wrocław

Ostrzeżenie: (0%)
-----


Kod
php_flag output_buffering Off

lub:
Kod
php_flag output_buffering 0


Ten post edytował by_ikar 1.03.2012, 16:55:40
Go to the top of the page
+Quote Post
Athread
post
Post #3





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 13.06.2011

Ostrzeżenie: (0%)
-----


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
Go to the top of the page
+Quote Post
by_ikar
post
Post #4





Grupa: Zarejestrowani
Postów: 1 798
Pomógł: 307
Dołączył: 13.05.2009
Skąd: Gubin/Wrocław

Ostrzeżenie: (0%)
-----


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.
Go to the top of the page
+Quote Post
Athread
post
Post #5





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 13.06.2011

Ostrzeżenie: (0%)
-----


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ć ?

Ten post edytował Athread 1.03.2012, 20:01:37
Go to the top of the page
+Quote Post
by_ikar
post
Post #6





Grupa: Zarejestrowani
Postów: 1 798
Pomógł: 307
Dołączył: 13.05.2009
Skąd: Gubin/Wrocław

Ostrzeżenie: (0%)
-----


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ć?
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 12:01