php_mbstring.dll

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

pauspling
Forum Newbie
Posts: 24
Joined: Thu Nov 17, 2005 4:06 pm

php_mbstring.dll

Post by pauspling »

Hi, I have been trying to install the extension php-mbstring.dll to get rid of an error message in phpMyAdmin. I placed the .dll file in my extension_dir folder, removed the ";" from in front of the extension name in the php.ini file, and restarted my Apache server. Still, I get the following error message: "Unable to load dynamic library 'c:/php/ext/php_mbstring.sll'. The specified module could not be found." Any ideas of what the problem is?

/Paulina
pauspling
Forum Newbie
Posts: 24
Joined: Thu Nov 17, 2005 4:06 pm

php_mbstring.dll

Post by pauspling »

I meant, "c:/php/ext/php_mbstring.dll"

/Paulina
duk
Forum Contributor
Posts: 199
Joined: Wed May 19, 2004 8:45 am
Location: London

Post by duk »

try to put the DLL in your windows directory... will work fine..
pauspling
Forum Newbie
Posts: 24
Joined: Thu Nov 17, 2005 4:06 pm

php_mbstring.dll

Post by pauspling »

Nope. Have tried that too. Does not work. javascript:emoticon(':(')
Sad

Any other suggestions?

/Paulina :(
redmonkey
Forum Regular
Posts: 836
Joined: Thu Dec 18, 2003 3:58 pm

Post by redmonkey »

Your post suggests that you downloaded the .dll file separately? If so, did you ensure that the dowloaded file was/is specific to your PHP version?

Also, which exact PHP version are you running?

The 'the specified module cannot be found' error message is a bit vague/incorrect on PHP's part as in many cases it indicates an error while loading the module/extension and not actually a failure to locate the module itself.
pauspling
Forum Newbie
Posts: 24
Joined: Thu Nov 17, 2005 4:06 pm

php_mbstring.dll

Post by pauspling »

I thought about that too. I am using PHP 5.1.2, but I have a 5.1.3 php_mbstring.dll file. Maybe that is the problem? Do you know where I can download a 5.1.2 version? I have been looking, but so far no luck.

/P
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

it should be in either the php 5.1.2 zip download or in the pecl library download.

php 5.1.2 zip

5.1.2 pecl
pauspling
Forum Newbie
Posts: 24
Joined: Thu Nov 17, 2005 4:06 pm

php_mbstring.dll

Post by pauspling »

No, Still doesn't work.

Any other suggestions?

/P
redmonkey
Forum Regular
Posts: 836
Joined: Thu Dec 18, 2003 3:58 pm

Post by redmonkey »

Other than installing the entire .zip package to ensure compatability, not really. mbsring has no external dependancies (as far as I'm aware) so unless there is a known issue with that release, I can really suggest anything else.

Although, a little while ago for some odd reason, php_mbstring.dll seemed to depend on libmysql.dll, which seemed odd. You could try placing the libmysql.dll from the .zip package in the same directory as your PHP executable/php5apache.dll if it's not already there.
soul814
Forum Newbie
Posts: 16
Joined: Sat Apr 09, 2005 5:15 pm
Contact:

Post by soul814 »

i thought it was the windows/system32 folder? lol i just put that file everywhere

its in windows, windows/system32, php root folder and php/lib lol =) its bound to work somewhere
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

this is the full list of dependant dll's for 5.1.1's version of the file:

Code: Select all

EFSADU.DLL
MSJAVA.DLL
MPR.DLL
ADVAPI32.DLL
COMCTL32.DLL
COMDLG32.DLL
GDI32.DLL
KERNEL32.DLL
MSVCRT.DLL
NTDLL.DLL
ODBC32.DLL
OLE32.DLL
OLEAUT32.DLL
PHP5TS.DLL
PHP_MBSTRING.DLL
RPCRT4.DLL
SHELL32.DLL
SHLWAPI.DLL
USER32.DLL
WS2_32.DLL
WS2HELP.DLL
ACTIVEDS.DLL
ADSLDPC.DLL
ADVPACK.DLL
APPHELP.DLL
ATL.DLL
AUTHZ.DLL
BROWSEUI.DLL
CABINET.DLL
CDFVIEW.DLL
CERTCLI.DLL
CFGMGR32.DLL
CLUSAPI.DLL
CREDUI.DLL
CRYPT32.DLL
CRYPTUI.DLL
CSCDLL.DLL
DBGHELP.DLL
DEVMGR.DLL
DHCPCSVC.DLL
DNSAPI.DLL
DUSER.DLL
ESENT.DLL
GDIPLUS.DLL
HLINK.DLL
HNETCFG.DLL
IMAGEHLP.DLL
IMGUTIL.DLL
IMM32.DLL
INETCOMM.DLL
IPHLPAPI.DLL
LINKINFO.DLL
LZ32.DLL
MLANG.DLL
MOBSYNC.DLL
MPRAPI.DLL
MPRUI.DLL
MSASN1.DLL
MSGINA.DLL
MSHTML.DLL
MSI.DLL
MSIMG32.DLL
MSLS31.DLL
MSOERT2.DLL
MSRATING.DLL
MSSIGN32.DLL
MSVCP60.DLL
MSWSOCK.DLL
NETAPI32.DLL
NETCFGX.DLL
NETMAN.DLL
NETPLWIZ.DLL
NETRAP.DLL
NETSHELL.DLL
NETUI0.DLL
NETUI1.DLL
NETUI2.DLL
NTDSAPI.DLL
NTLANMAN.DLL
OLEACC.DLL
POWRPROF.DLL
PRINTUI.DLL
PSAPI.DLL
QUERY.DLL
RASAPI32.DLL
RASDLG.DLL
RASMAN.DLL
REGAPI.DLL
RTUTILS.DLL
SAMLIB.DLL
SCECLI.DLL
SECUR32.DLL
SETUPAPI.DLL
SHDOCVW.DLL
SHSVCS.DLL
TAPI32.DLL
URLMON.DLL
USERENV.DLL
USP10.DLL
UTILDLL.DLL
UXTHEME.DLL
VERSION.DLL
W32TOPL.DLL
WINHTTP.DLL
WININET.DLL
WINMM.DLL
WINSCARD.DLL
WINSPOOL.DRV
WINSTA.DLL
WINTRUST.DLL
WLDAP32.DLL
WMI.DLL
WSOCK32.DLL
WTSAPI32.DLL
WZCDLG.DLL
WZCSAPI.DLL
WZCSVC.DLL
Overall, a pretty standard DLL, compared to others..

Edit:
Note that most of those files are actually dependants of php5ts.dll ... this dll directly is dependant on about 5 of the files.
redmonkey
Forum Regular
Posts: 836
Joined: Thu Dec 18, 2003 3:58 pm

Post by redmonkey »

Hmmm, interseting. On a rather vanilla flavoured v5.1.2 with nothing other than the mbstring and gd2 extensions loaded I get...

Code: Select all

ntdll.dll
php5ts.dll
OLEAUT32.dll
ole32.dll
RPCRT4.DLL
KERNEL32.DLL
ADVAPI32.DLL
GDI32.DLL
USER32.dll
ODBC32.dll
COMCTL32.dll
comdlg32.dll
SHLWAPI.DLL
SHELL32.DLL
MSVCRT.DLL
WS2_32.dll
WS2HELP.DLL
odbcint.dll
php_mbstring.dll
php_gd2.dll
INDICDLL.dll
IMM32.dll
With php_mbtring.dll showing as being dependant on php5ts.dll, msvcrt.dll, kernel32.dll and ntdll.dll

I suppose when I say 'no external dependencies' I should've said 'other than std system .dlls and others already used by the actual executable'.

One other possibility is that perhaps the php_mbstring.dll file has had it's file permissions messed with and the system is unable to load the file under whichever user php is running under?
pauspling
Forum Newbie
Posts: 24
Joined: Thu Nov 17, 2005 4:06 pm

php_mbstring.dll

Post by pauspling »

I am really greatful for your help guys, but somehow nothing seems to help.

/P
pauspling
Forum Newbie
Posts: 24
Joined: Thu Nov 17, 2005 4:06 pm

php_mbstring.dll

Post by pauspling »

Here, I thought I might post the code from my php.ini file:

Code: Select all

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues.  The alternate is to use the
; cgi.force_redirect configuration below
doc_root = c:\apache\htdocs

; The directory under which PHP opens the script using /~username used only
; if nonempty.
user_dir =

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

; Whether or not to enable the dl() function.  The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
enable_dl = On

; cgi.force_redirect is necessary to provide security running PHP as a CGI under
; most web servers.  Left undefined, PHP turns this on by default.  You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
; cgi.force_redirect = 1

; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
; every request.
; cgi.nph = 1

; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
; will look for to know it is OK to continue execution.  Setting this variable MAY
; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
; cgi.redirect_status_env = ;

; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
; security tokens of the calling client.  This allows IIS to define the
; security context that the request runs under.  mod_fastcgi under Apache
; does not currently support this feature (03/17/2002)
; Set to 1 if running under IIS.  Default is zero.
; fastcgi.impersonate = 1;

; Disable logging through FastCGI connection
; fastcgi.log = 0

; cgi.rfc2616_headers configuration option tells PHP what type of headers to
; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
; is supported by Apache. When this option is set to 1 PHP will send
; RFC2616 compliant header.
; Default is zero.
;cgi.rfc2616_headers = 0


;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
upload_max_filesize = 2M


;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;

; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
allow_url_fopen = On

; Define the anonymous ftp password (your email address)
;from="john@doe.com"

; Define the User-Agent string
; user_agent="PHP"

; Default timeout for socket based streams (seconds)
default_socket_timeout = 60

; If your scripts have to deal with files from Macintosh systems,
; or you are running on a Mac and need to deal with files from
; unix or win32 systems, setting this flag will cause PHP to
; automatically detect the EOL character in those files so that
; fgets() and file() will work regardless of the source of the file.
; auto_detect_line_endings = Off


;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
;
; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename.extension
;
; For example, on Windows:
;
;   extension=msql.dll
;
; ... or under UNIX:
;
;   extension=msql.so
;
; Note that it should be the name of the module only; no directory information
; needs to go here.  Specify the location of the extension with the
; extension_dir directive above.


;Windows Extensions
;Note that ODBC support is built in, so no dll is needed for it.
;

extension=php_mbstring.dll
;extension=php_bz2.dll
;extension=php_cpdf.dll
;extension=php_curl.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_dbx.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
;extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_ifx.dll
;extension=php_iisfunc.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_java.dll
;extension=php_ldap.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_mssql.dll
;extension=php_msql.dll
extension=php_mysql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pdf.dll
;extension=php_pgsql.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_sockets.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_w32api.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll
;extension=php_yaz.dll
;extension=php_zip.dll
pauspling
Forum Newbie
Posts: 24
Joined: Thu Nov 17, 2005 4:06 pm

php_mbstring.dll

Post by pauspling »

I somehow managed to solve it. I downloaded the whole .zip package (not Installer) of PHP 1.5.2 and extracted them to my c:\php folder. Now, everything works fine, apart from that I have to use my old php.ini file, because the new one gives a compilation error (line 872) whn I start the Apache server.
Post Reply