Edgard,

I resolved the "Unable to load dynamic library" problem but am encountering
an HTTP 404 File not found condition.  I guess you just deal with one error
at a time.  There is definitely a PHP documentation problem which I just
submitted in the form of a bug report.

In any case,

the PHP manual states:

The default location PHP searches for extensions is c:\php4\extensions in
PHP 4 and c:\php5 in PHP 5.

Under Installation of extensions on Windows it states:

· You will need to change the extension_dir setting to point to the
directory where your extensions lives, or where you have placed your
php_*.dll files. Please do not forget the last backslash. For example:

extension_dir = c:/php/extensions/

However,

under Microsoft IIS / PWS
General considerations for all installations of PHP with IIS

it states:

· Be sure the extension_dir and doc_root PHP directives are appropriately
set in php.ini. These directives depend on the system that PHP is being
installed on. In PHP 4, the extension_dir is extensions while with PHP 5
it's ext. So, an example PHP 5 extensions_dir value is "c:\php\ext" and an
example IIS doc_root value is "c:\Inetpub\wwwroot".

Under MySql Functions
Installation on Windows Systems
it states:

As with enabling any PHP extension (such as php_mysql.dll), the PHP
directive extension_dir should be set to the directory where the PHP
extensions are located. An example extension_dir value for PHP 5 is
c:\php\ext

If you're wondering, what is difference between the last 2 examples, the
last one is not enclosed in quotes.

Essentially, the default for extension_dir is not working for you so you
should change it.  The question is to what?

Robin

""Edgard Berendsen"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Same problem here!
>
> I'm tired to install the MySQL extension in php with no success.
> using: PHP 5.0.4 + MySQL Server 4.1
>
> PHP Warning: PHP Startup: Unable to load dynamic library '.;C:\Archivos de
> programa\PHP\ext\php_mysql.dll' - No se puede encontrar el módulo
> especificado
>
> -I've read all the Internet searching for a solution.
>
> -I've copied to "C:\Archivos de programa\PHP" , "C:\Windows",
> "C:\Windows\System32" the 3 files:
> php_mysql.dll
> libmySQL.dll
> php5ts.dll
>
> - Uncomented extension=php_mysql.dll in "php.ini"
>
> - Uncomented extension_dir = ".;C:\Archivos de programa\PHP\ext"
>
> nothing worked
>
> I've installed PHP 4 + MySQL several times and this is my first PHP 5
> instalation
>
> Please help
>
>
>
>
>
> ""Robin Rembish"" <[EMAIL PROTECTED]> escribió en el mensaje
> news:[EMAIL PROTECTED]
> >I am trying to install PHP5 with Personal Web Server 4 on a Windows 98
> > Operating System.  When I try to run a simple script under PWS
> > ("hello.php"), I get the error message below:
> >
> > PHP Startup: Unable to load dynamic library '/php_mysql.dll' -
> > One of the library files needed to run this application can not be
found.
> >
> > Can anyone offer assistance with this problem?
> >
> > I have provided a checklist of tasks completed based on the PHP manual.
> >
> > Thanks,
> >
> > Robin
> > *******************************
> > Description
> > Manual Installation:
> > Download zip binary distribution from downloads page
> > Website: http://www.php.net/downloads.php
> >
> > Description
> > Microsoft 98/NT :
> > Download latest version of Microsoft Data Access Components (MDAC) for
> > your
> > platform
> > Website: http://msdn.microsoft.com/data/
> >
> > Description
> > Extract distribution file into c:\php
> >
> > Description
> > Add c:\php to PATH by editing autoexec.bat file
> >
> > path C:\WINDOWS;C:\WINDOWS\COMMAND;C:\php
> >
> > Description
> > Download PHP extensions into c:\php5
> > Website: http://www.php.net/downloads.php
> >
> > Description
> > Place php5activescript.dll in c:\php
> > Register dll with DOS command:
> > cd c:\php
> > regsvr32 php5activescript.dll
> > (regsvr32.exe was copied from c:\Windows\System\inetsrv)
> >
> > Message: DllRegisterServer in php5activescript.dll succeeded
> >
> > Description
> > To test if ActiveScript working: create test.wsf in c:\php
> > Double click file
> > If receive little window with "Hello World!", you're done
> >
> > Description
> > Set up valid configuration file for php:
> > php.ini-recommended saved as php.ini
> >
> > Description
> > ActiveScript doesn't use php.ini file
> > Create php-activescript.ini and place it in c:\php
> >
> > Description
> > CGI users must set the cgi.force_redirect PHP directive to 0
> > in php.ini
> > in php-activescript.ini
> >
> > Description
> > In php.ini
> > php-activescript.ini
> >
> > check these values:
> > doc_root = c:\inetput\wwwroot
> > extension_dir = "./"
> >
> > Description
> > PWS 4 does not support ISAPI, only PHP CGI should be used
> >
> > Edit the pws-php5cgi.reg file in c:\php
> > ".php"="c:\\php\\php-cgi.exe"
> > double click to merge registry file into system
> >
> > In Personal Web Manager:*
> > View > Advanced > Edit Properties
> > Check box Execute
> >
> > *Note: It appears that the PHP manual is incorrect. This manual states
the
> > following:
> >
> > In the PWS Manager, right click on a given directory you want to add PHP
> > support to, and select Properties. Check the 'Execute' checkbox, and
> > confirm.
> >
> >
> > Description
> > The default location PHP searches for extensions is c:\php5
> >
> > In php.ini
> > php-activescript.ini
> >
> > kept default setting for extension_dir
> >
> > Description
> > Enable the extensions
> > In php.ini
> > php-activescript.ini
> >
> > Done by deleting leading ; from extension you want to load
> >
> > Removed ; from beginning of:
> > extension=php_mysql.dll
> >
> > Description
> > Create hello.php and put in web server's root directory (document_root).
> > Use
> > browser to access locally with:
> >
> > http://localhost/hello.php
> >
> > Code:
> >
> > <html>
> > <head>
> > <title>PHP Test</title>
> > </head>
> > <body>
> > <?php echo '<p>Hello World</p>'; ?>
> > </body>
> > </html>
> >
> > Got error message:
> > PHP Startup: Unable to load dynamic library '/php_mysql.dll'
> > One of the library files needed to run this application can not be found
> >
> >
> >
> > Files under c:\php
> >
> > fdftk.dll, fribidi.dll, gds32.dll, go-pear.bat, install.txt,
libeay32.dll,
> > libmhash.dll, libmysql.dll, license.txt, msql.dll, news.txt,
ntwdblib.dll,
> > php.exe, php.gif, php.ini, php.ini-dis, php.ini-recommended,
> > php_mysql.dll,
> > php5activescript.dll, php5apache.dll, php5apache_hooks.dll,
> > php5apache2.dll,
> > php5embed.lib, php5isapi.dll, php5nsapi.dll, php5ts.dll,
> > php-activescript..ini, php-cgi.exe, php-win.exe, pws-php5cgi.reg,
> > pws-php5isapi.reg, regsvr32.exe, snapshot.txt, ssleay32.dll, test.wsf,
> > yaz.dll
> >
> > Files under c:\php\ext
> >
> > php_bz2.dll, php_cpdf.dll, php_curl.dll, php_dba.dll, php_dbase.dll,
> > php_dbx.dll, php_dio.dll, php_exif.dll, php_fdf.dll, php_filepro.dll,
> > php_gd2.dll, php_gettext.dll, php_ifx.dll, php_imap.dll,
> > php_interbase.dll,
> > php_ldap.dll, php_mbstring.dll, php_mcrypt.dll, php_mhash.dll,
> > php_mime_magic.dll, php_ming.dll, php_msql.dll, php_mysql.dll,
> > php_mysqli.dll, php_oci8.dll, php_openssl.dll, php_oracle.dll,
> > php_pgsql.dll, php_pspell.dll, php_shmop.dll, php_snmp.dll,
php_soap.dll,
> > php_sockets.dll, php_sybase_ct.dll, php_tidy.dll, php_xmlrpc.dll,
> > php_xsl.dll

Reply via email to