#1
  1. No Profile Picture
    eternal novice
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Location
    Madrid
    Posts
    455
    Rep Power
    14

    Angry how to enable mbstring PHP extension


    How do I enable the mbstring extension without access to my php.ini file (using web hosting provider).

    I tried inserting this:

    PHP_VALUE mbstring.internal_encoding UTF-8
    PHP_VALUE mbstring.http_output UTF-8
    PHP_VALUE mbstring.encoding_translation On
    PHP_VALUE mbstring.detect_order UTF-8
    PHP_VALUE mbstring.func_overload 7

    into my .htaccess file but i still get this message from phpMyAdmin 2.6.2-rc1:

    The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.
  2. #2
  3. mod_dev_shed
    Devshed Supreme Being (6500+ posts)

    Join Date
    Sep 2002
    Location
    Atlanta, GA
    Posts
    14,817
    Rep Power
    1100
    This has to be configured during compilation of PHP. The ini settings are irrelevant if the extension is not loaded.
  4. #3
  5. No Profile Picture
    eternal novice
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Location
    Madrid
    Posts
    455
    Rep Power
    14
    ok, thanks
  6. #4
  7. (retired)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2003
    Location
    The Laboratory
    Posts
    10,101
    Rep Power
    0
    I think if you're on windows, you don't need to recompile, but can just copy the php_mbstring dll into the system path (eg: C:\windows\system32) and uncomment the line in your php.ini which points to the mbstring dll.

    --Simon
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2006
    Posts
    7
    Rep Power
    0

    The mbstring PHP extension was not found


    Originally Posted by SimonGreenhill
    I think if you're on windows, you don't need to recompile, but can just copy the php_mbstring dll into the system path (eg: C:\windows\system32) and uncomment the line in your php.ini which points to the mbstring dll.

    --Simon
    Hi,
    I got the error like this:
    The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.

    I un-commend the extensionfiltered=mb_string.dll
    but under the php/ dir, I only see php4ts.dll, this is suppose the extension, how do I know it contains mb_string.dll?

    I installed apache 2.0.59, php4.4.4-installer, phpMyadmin-2.64,mysql4.1.21

    Please send my some advise.

    Many thanks,
  10. #6
  11. mod_dev_shed
    Devshed Supreme Being (6500+ posts)

    Join Date
    Sep 2002
    Location
    Atlanta, GA
    Posts
    14,817
    Rep Power
    1100
    mb_string.dll will be in an extension directory. Search php.ini for extension_dir to see the currently configured extension directory. It's usually located in %PHP_INSTALL_DIR%\ext or similar. You need to make sure mb_string.dll is in the extension directory, and you need to make sure php.ini's extension_dir is properly set.

    Don't forget to restart Apache.
    # Jeremy

    Explain your problem instead of asking how to do what you decided was the solution.
  12. #7
  13. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2007
    Posts
    2
    Rep Power
    0
    Hi,
    Any idea from where can i get php_mbstring.dll ...?
    It doesn't seem to be the part of the latest stable installation pkg.
    Neither could I find it on php.net or pecl.php.net.

    Etirps
  14. #8
  15. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2007
    Posts
    2
    Rep Power
    0
    Originally Posted by etirps
    Hi,
    Any idea from where can i get php_mbstring.dll ...?
    It doesn't seem to be the part of the latest stable installation pkg.
    Neither could I find it on php.net or pecl.php.net.

    Etirps
    Ok got it...
    during installation (on windows) one has to specify which extensions to include...

    sorry for the spam..

    Etirps

IMN logo majestic logo threadwatch logo seochat tools logo