Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Header("location: "), jak obejść
escaflowne
post
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.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
escaflowne
post
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ć)?
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 30.12.2025 - 08:08