ForestCZE 2 Odesláno: 9. Listopad, 2010 Share Odesláno: 9. Listopad, 2010 Zdravim Na linuxu mi to běželo v pohodě a na winu už to běžet nechce... Warning: Cannot modify header information - headers already sent by (output started at /var/www/subdomeny/apanel/index.php:12) in /var/www/subdomeny/apanel/index.php on line 20 Řádek 12: <?php echo("GTA: SA-MP | Port: ".$_SESSION["port"].""); ?> Řádek 20: Header("Location: login.php"); Poraďte někdo prosím, kde je chyba, díky Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 9. Listopad, 2010 Share Odesláno: 9. Listopad, 2010 Header("Location: login.php"); musí být před poslání výstupu prohlížeči (aspoň myslím), před prvním echem a html výstupem (Snad to chápeš) Link to comment Share on other sites More sharing options...
0 ForestCZE 2 Odesláno: 9. Listopad, 2010 Author Share Odesláno: 9. Listopad, 2010 Header("Location: login.php"); musí být před poslání výstupu prohlížeči (aspoň myslím), před prvním echem a html výstupem (Snad to chápeš) Dal jsem to uplně nahoru před HTML kód a teď mi to vyhodí ještě navíc toto: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/subdomeny/apanel/index.php:1) in /var/www/subdomeny/apanel/index.php on line 2 Link to comment Share on other sites More sharing options...
0 Patrony 0 Odesláno: 9. Listopad, 2010 Share Odesláno: 9. Listopad, 2010 Ale forest, rád tě zase vidím, no problém vyřešíš tak, že půjdeš do php.ini a nastavíš output_buffering = On a je vyřešeno Na linuxu je php.ini myslím ve složce /etc/php5/apache2/php.ini Link to comment Share on other sites More sharing options...
0 ForestCZE 2 Odesláno: 9. Listopad, 2010 Author Share Odesláno: 9. Listopad, 2010 Ale forest, rád tě zase vidím, no problém vyřešíš tak, že půjdeš do php.ini a nastavíš output_buffering = On a je vyřešeno Na linuxu je php.ini myslím ve složce /etc/php5/apache2/php.ini Díky Link to comment Share on other sites More sharing options...
0 Deleted User 295 Odesláno: 9. Listopad, 2010 Share Odesláno: 9. Listopad, 2010 no mne to tiez robilo, ja osm to vyriesil prokazom ob_Start(); hned na 1. riadok Link to comment Share on other sites More sharing options...
Dotaz
ForestCZE 2
Zdravim
Na linuxu mi to běželo v pohodě a na winu už to běžet nechce...
Warning: Cannot modify header information - headers already sent by (output started at /var/www/subdomeny/apanel/index.php:12) in /var/www/subdomeny/apanel/index.php on line 20
Řádek 12:
Řádek 20:
Poraďte někdo prosím, kde je chyba, díky
Link to comment
Share on other sites
5 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now