Forum Moderators: phranque
I'm trying to do what I thought would be just a few simple things via htaccess:
1. set the value in the php.ini to a certain time zone
2. set a number of values in the php.ini for internationalization
So, here's what I did in the .htaccess:
# CLIENT/APPLICATION TIME ZONE:
php_value date.timezone = Asia/Singapore ; Set default time zone
# INTERNATIONALIZATION:
php_value mbstring.language = Neutral ; Set default language to Neutral(UTF-8) (default)
php_value mbstring.internal_encoding= UTF-8 ; Set default internal encoding to UTF-8
php_value mbstring.encoding_translation= On ; HTTP input encoding translation is enabled
php_value mbstring.http_input = auto ; Set HTTP input character set dectection to auto
php_value mbstring.http_output = UTF-8 ; Set HTTP output encoding to UTF-8
php_value mbstring.detect_order = auto ; Set default character encoding detection order to auto
php_value mbstring.substitute_character= none ; Do not print invalid characters
php_value default_charset = UTF-8 ; Default character set for auto content type header
So... I uploaded this and tested it and came up with a 500 Internal Server Error.
Then I commented all the internationalization lines out (#) and tried again with only the timezone line active - same thing... hummm.
Then I had a chat with my hosting company. They took a look at the apache logs which indicated: php_value takes two arguments, PHP Value Modifier.
Two arguments? I know that if you manually edit the date.timezone value in a php.ini file it's only value is the locale (i.e. Asia/Hong-Kong).
This must be something I'm doing wrong... has anyone else had his issue and/or know what I need to do to fix it?
Huge appreciation to all in advance!
Neophyte
Lines which begin with the hash character "#" are considered comments, and are ignored. Comments may not be included on a line after a configuration directive. Blank lines and white space occurring before a directive are ignored, so you may indent directives for clarity.
[php.net...] - may also be useful.
.
I am guessing the correct syntax might also be closer to this:
php_value date[b]_[/b]timezon[b]e A[/b]sia/Singapore