#1
  1. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Posts
    2,566
    Rep Power
    171

    Php_mbstring.dll enabled ??


    Hello;
    I am using mpdf to make pdf pages. It works fine on local machine but on-line I get this error:

    Error - mPDF requires mb_string functions. Ensure that PHP is compiled with php_mbstring.dll enabled.

    How can I enable php_mbstring.dll ?

    Thanks
  2. #2
  3. Come play with me!
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,742
    Rep Power
    9397
    Find your php.ini, uncomment the line with the extension, and restart the server.
  4. #3
  5. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Posts
    2,566
    Rep Power
    171
    Originally Posted by requinix
    Find your php.ini, uncomment the line with the extension, and restart the server.
    This is what I see in php.ini
    [mbstring]
    ; language for internal character representation.
    ;mbstring.language = Japanese

    ; internal/script encoding.
    ; Some encoding cannot work as internal encoding.
    ; (e.g. SJIS, BIG5, ISO-2022-*)
    ;mbstring.internal_encoding = EUC-JP

    ; http input encoding.
    ;mbstring.http_input = auto

    ; http output encoding. mb_output_handler must be
    ; registered as output buffer to function
    ;mbstring.http_output = SJIS

    ; enable automatic encoding translation accoding to
    ; mbstring.internal_encoding setting. Input chars are
    ; converted to internal encoding by setting this to On.
    ; Note: Do _not_ use automatic encoding translation for
    ; portable libs/applications.
    ;mbstring.encoding_translation = Off

    ; automatic encoding detection order.
    ; auto means
    ;mbstring.detect_order = auto

    ; substitute_character used when character cannot be converted
    ; one from another
    ;mbstring.substitute_character = none;

    ; overload(replace) single byte functions by mbstring functions.
    ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
    ; etc. Possible values are 0,1,2,4 or combination of them.
    ; For example, 7 for overload everything.
    ; 0: No overload
    ; 1: Overload mail() function
    ; 2: Overload str*() functions
    ; 4: Overload ereg*() functions
    ;mbstring.func_overload = 0



    I dont see any Php_mbstring.dll

    !!!
  6. #4
  7. Come play with me!
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,742
    Rep Power
    9397
    Search for "mbstring". There's more than one in the file.
  8. #5
  9. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Posts
    2,566
    Rep Power
    171
    Originally Posted by requinix
    Search for "mbstring". There's more than one in the file.
    Hey, have a look at the php.ini:

    hotels2go.com.au/5nightcomp/ini.html
  10. #6
  11. Come play with me!
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,742
    Rep Power
    9397
  12. #7
  13. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Posts
    2,566
    Rep Power
    171
    Originally Posted by requinix
    What does php info say about "additional INI files"?
    This. -Sorry I cant send links, but here it is-

    hotels2go.com.au/5nightcomp/phpinfo.php
  14. #8
  15. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Posts
    2,566
    Rep Power
    171
    Originally Posted by requinix
    What does phpinfo say about "additional INI files"?
    I added the following lines to php.ini

    Question one:

    There are 3 places where the php.ini file can be found:
    /etc/php.ini
    /scripts/php.ini
    /usr/lib/php.ini

    Which one is the one?

    Also; on my local machine (xampp) ther is a folder called ext which contains php_mbstring and other .dll files.

    Where is this folder located online? I assume I have to upload php_mbstring.dll


    Here are lines I added:


    extension=php_bz2.dll
    ;extension=php_curl.dll
    ;extension=php_dba.dll
    extension=php_mbstring.dll
    extension=php_exif.dll
    ;extension=php_fileinfo.dll
    extension=php_gd2.dll
    extension=php_gettext.dll
    ;extension=php_gmp.dll
    extension=php_imap.dll
    ;extension=php_interbase.dll
    ;extension=php_intl.dll
    ;extension=php_ldap.dll
    extension=php_mcrypt.dll
    ;extension=php_mssql.dll
    ;extension=php_mysql_mysqlnd.dll
    extension=php_mysql_libmysql.dll
    ;extension=php_mysqli_mysqlnd.dll
    extension=php_mysqli_libmysql.dll
    ;extension=php_oci8.dll
    extension=php_pdo.dll
    ;extension=php_pdo_firebird.dll
    ;extension=php_pdo_mssql.dll
    ;extension=php_pdo_mysql_mysqlnd.dll
    extension=php_pdo_mysql_libmysql.dll
    extension=php_pdo_odbc.dll
    ;extension=php_pdo_pgsql.dll
    extension=php_pdo_sqlite.dll
    ;extension=php_pdo_sqlite_external.dll
    ;extension=php_pgsql.dll
    ;extension=php_pspell.dll
    ;extension=php_shmop.dll
    ;extension=php_snmp.dll
    extension=php_soap.dll
    extension=php_sockets.dll
    extension=php_sqlite.dll
    extension=php_sqlite3.dll
    ;extension=php_sybase_ct.dll
    ;extension=php_tidy.dll
    extension=php_xmlrpc.dll
    extension=php_zip.dll

IMN logo majestic logo threadwatch logo seochat tools logo