Forum Moderators: coopster

Message Too Old, No Replies

Multibyte string input conversion disabled via .htaccess?

         

Trisha

7:59 pm on Sep 21, 2006 (gmt 0)

10+ Year Member



Can 'Multibyte string input conversion' in PHP be disabled through .htaccess? If so how?

Or should this be asked in the htaccess forum?

(I'm trying to run drupal on a particular host and keep getting an error saying it must be disabled.)

coopster

8:04 pm on Sep 21, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Possibly.

When using PHP as an Apache module, it is possible to override those settings in each Virtual Host directive in
httpd.conf
or per directory with
.htaccess
. Refer to the Configuration section and Apache Manual for details.

Resource:
[php.net...]

Trisha

2:57 am on Sep 22, 2006 (gmt 0)

10+ Year Member



Thanks, I looked at the php site - way over my head. I'll just use something else.

coopster

1:56 pm on Sep 22, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



No problem, let's take a closer look ...

The directives are listed on that page in Example 4. Following the Configuration [php.net] link we find a section titled How to change configuration settings [php.net] (remembering of course that the note stated we must be using PHP as an Apache module). Using the directions provided, we should end up with the following directives to place in our

.htaccess
file:
;; Disable HTTP Input conversion 
php_value mbstring.http_input pass
;; Disable HTTP Input conversion (PHP 4.3.0 or higher)
php_flag mbstring.encoding_translation Off