Forum Moderators: coopster

Message Too Old, No Replies

Can't get mbstring to work

         

andrewsmd

4:09 pm on Jan 25, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have the mbstring line uncommented in my php.ini and I have the php_mbstring dll in the php\ext folders. However, i get an error that it is not enabled with phpmyadmin. Any ideas why? I'm running this on a win 7 machine.

coopster

5:06 pm on Jan 26, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Make sure that your
extension_dir
directive is set up correctly too, and don't forget to restart the Apache http server. Check your "Event Viewer" in the Administrative Tools for any errors on the Apache server and also check the Apache error logs.

; Directory in which the loadable extensions (modules) reside.
;extension_dir = "./"
extension_dir = "c:\php\ext"

andrewsmd

5:04 pm on Jan 28, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not running apache running windows IIS 7. I'll do some looking.

andrewsmd

5:15 pm on Jan 28, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have the dll in there and it is uncommented in the ini file. I can see it in the php info page. Is there something special I have to do on windows to install it?

coopster

5:53 pm on Jan 28, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



If it's in your phpinfo() then it is up and running. Try running your own little example script to see if it works. Pick any one of the mbstring functions, maybe mb_get_info() [php.net].

If that works, you have it installed. I'm guessing it will because you are seing it in phpinfo(). So perhaps there is another setting somewhere in phpMyAdmin you need to configure.

andrewsmd

8:13 pm on Jan 28, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Like I said, that is what is so confusing. Here is what the mb_get_info returned.

Fatal error: Call to undefined function mb_get_info() in C:\inetpub\wwwroot\duane\report.php on line 25

So I realized I was reading my phpinfo wrong. What I can't seem to figure out now is how to enable it. I have tried pasting the dll in different folders seeing if I had it in the wrong extensions folder with no luck. I have tried c:\windows c:\php\ext c:\php\ c:\windows\system32
Can you think of any folders it might need to be in instead? This is just a default install of php.

coopster

1:45 pm on Jan 31, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Check my first post again. You may not be telling the server the correct path for your extensions. Also, mbstring must be uncommented before exif.dll, so if you are using that library you will need to move the mbstring.dll line above the other in your php.ini configuration. As always, don't forget to save the config and restart your http server.