Welcome Guest, Not a member yet? Register   Sign In
On production server(justhost) UTF-8 with BOM is problem, but on my WAMP localhost it is OK. Why?
#1

[eluser]term25[/eluser]
I do not understand that on my localhost(On my home computer I am using WAMP) runs everything OK, but on my production server (justhost) it throws a lot of headers already sent and other things and I have to save files as UTF-8 without BOM to solve this problem.

Thats fine, however why it shows it on justhost and not on my home computer?

I do not understand why my home computer do not show me the same errors for headers already send etc.?

Where in WAMP can I set showing these error also, because it slows me down when I am not aware of these error on my localhost but only after moving to production server.

Or is it possible that something in Codeigniter config file is the problem?

Thanks for any suggestions.
#2

[eluser]pickupman[/eluser]
The errors may not show depending on what you have set for your error reporting in WAMP. Having BOM marker in a UTF-8 file in a PHP file will throw an error.
Quote:[url="http://en.wikipedia.org/wiki/Byte_order_mark#UTF-8"]WikiPedia - Byte Order Mark[/url]
For instance in PHP, the existence of a BOM will cause the page to begin output before the initial code is interpreted, causing problems if the page is trying to send custom HTTP headers (which must be set before output begins).

This may be something with your text editor inserting the character into a file. You can change your PHP error level, by setting this in CI's index.php under the environment setting. If you would like to change error reporting for everything on your computer, in WAMP, left click on your system tray icon->PHP->php.ini. Then look for error_reporting. There is a good explanation inside this file for the different settings.




Theme © iAndrew 2016 - Forum software by © MyBB