Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 220 Pomógł: 0 Dołączył: 20.02.2003 Skąd: Poznań Ostrzeżenie: (0%)
|
Pytanie: jak obejść "ograniczenie" php, które wymusza użycie header("Location: ") przed wysłaniem danych do przeglądarki?
W dokumentcji można przeczytać: Cytat Note: As of php 4, you can use output buffering to get around this problem, with the overhead of all of your output to the browser being buffered in the server until you send it. You can do this by calling manual/en/function.ob-start.php" target="_blank and manual/en/function.ob-end-flush.php" target="_blank in your script, or setting the output_buffering configuration directive on in your php.ini or server configuration files.
|
|
|
|
![]() |
Post
#2
|
|
|
Grupa: Zarejestrowani Postów: 220 Pomógł: 0 Dołączył: 20.02.2003 Skąd: Poznań Ostrzeżenie: (0%)
|
Kumam po angielsku, ale niektórych słów z powyższego cytatu nie rozumiem. Więc zapytam tak: na ile ustawić wartość output_buffering?
Obecnie mam wartość domyślną: 4096 (i nie działa) Czy zmiana tego parametru może stanowić potencjalną lukę w bezpieczeństwie (myślę, że raczej nie, ale wolę się upewnić)? |
|
|
|
escaflowne Header("location: ") 23.08.2004, 14:11:31
Yarecki Sam sobie odpowiedziałeś. Inny sposób poza podanym... 23.08.2004, 14:16:04
FiDO Przede wszystkim to nie jest ograniczenie php, tyl... 23.08.2004, 22:37:02 ![]() ![]() |
|
Aktualny czas: 30.12.2025 - 08:08 |