I can't use (redirect) and language helper in the same time ! |
[eluser]Zied[/eluser]
Hi! with this code redirect work very nice Code: <?php Code: <?php Severity: Warning Message: Cannot modify header information - headers already sent by (output started at /homez.344/edenclub/www/application/language/french/navigation1_lang.php:1) Filename: helpers/url_helper.php Line Number: 541
[eluser]mddd[/eluser]
You probably have some whitespace in your language php document. Make sure there is absolutely nothing (no space, no enter) before the <?php tag or after the ?> tag! If there is anything, your redirect header will not work. Also, why are you writing 'echo redirect(...)' ?? There is nothing to echo, you should just write: redirect(....);
[eluser]WanWizard[/eluser]
Output started at position 1 of a file is usually a file saved in UTF-8 with a BOM header. Tell your editor to save it without one...
[eluser]Zied[/eluser]
[quote author="mddd" date="1276808456"]You probably have some whitespace in your language php document. Make sure there is absolutely nothing (no space, no enter) before the <?php tag or after the ?> tag! If there is anything, your redirect header will not work. Also, why are you writing 'echo redirect(...)' ?? There is nothing to echo, you should just write: redirect(....);[/quote] I'm sure that i having any whitespace in my language php document. This code work in localhost ( with WAMP) bat not in WEBSERVER (OVH)
[eluser]WanWizard[/eluser]
It works? Or you don't see the warning? Do me a favour, and check the file. Given the fact that you work on Windows, quite possible that it is a UTF-8 BOM header...
[eluser]Zied[/eluser]
[quote author="WanWizard" date="1276808602"]Output started at position 1 of a file is usually a file saved in UTF-8 with a BOM header. Tell your editor to save it without one...[/quote] I'm don't understand "BOM". I used Dreamweaver to write my code. My view files have UTF-8.
[eluser]Eric Barnes[/eluser]
Try this: http://juicystudio.com/article/utf-byte-order-mark.php
[eluser]Zied[/eluser]
Thanks, the problem is UTF-8 with a BOM header. Now, I use Notepad++ with UTF-8 (without a BOM). Thanks a lot my friends. |
Welcome Guest, Not a member yet? Register Sign In |