Re: [PHP] Cannot Load DLLs (WinXP, Apache 2, PHP 5)
Philip Olson wrote: snip New installation instructions exist that recommend never copying any files to the Windows system directory. It's preferred to leave all files in the PHP directory and make it (the PHP folder) available to the systems PATH by editing the appropriate system environment variable. People copy files into the Windows system directory because it's in the PATH so no additional setup is required. Do not fall into this trap. Add the PHP directory to your PATH as doing so will make the world a better place. The updated manual is as follows: http://php.net/manual/en/install.windows.manual.php If setup this way the above problem would not exist, PHP will find libmysql.dll. A FAQ on editing the systems path is here: snip Sorry Philip, but I have to disagree I did an install on Wednesday of this week. I placed an entry for my PHP folder in the PATH and it made no difference. Only once I had overwritten the libmysql.dll in the Windows system folder with the version that ships with PHP5 did I get everything to play nicely together. Regards -- Rory McKinley Nebula Solutions +27 21 555 3227 - office +27 21 551 0676 - fax +27 82 857 2391 - mobile www.nebula.co.za This e-mail is intended only for the person to whom it is addressed and may contain confidential information which may be legally privileged. Nebula Solutions accepts no liability for any loss, expense or damage arising from this e-mail and/or any attachments. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cannot Load DLLs (WinXP, Apache 2, PHP 5)
Rory McKinley wrote: Sorry Philip, but I have to disagree I did an install on Wednesday of this week. I placed an entry for my PHP folder in the PATH and it made no difference. Only once I had overwritten the libmysql.dll in the Windows system folder with the version that ships with PHP5 did I get everything to play nicely together. What was the order in your PATH entry? I suspect that the copy in the system folder was being found first. PATH is very badly managed now in windows, it's fine if you only have one copy of a file, but you can not rely on it if old copies exist elsewhere in the PATH. -- Lester Caine - L.S.Caine Electronic Services -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cannot Load DLLs (WinXP, Apache 2, PHP 5)
Hy! You have to restart windows after changing the path-variable, else it has no effect. it it functioning for me -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cannot Load DLLs (WinXP, Apache 2, PHP 5)
I can't get PHP to load php_mysql.dll, required to use the mysql_*() functions. I have tried a variety of values for extension_dir, including C:/php/ext, C:\php\ext, C:\php\, ./ext/, ext/. I have copied php_mysql to all these directories, but it is not loading it. PHP is stored in C:/php, and works perfectly apart from not finding the MySQL dll file. If you could advise me for how to get PHP to load this DLL, I would be very grateful! This was just disussed a few days ago. Copy the libmysql.dll file **that comes with PHP5** into the windows/system32/ directory. New installation instructions exist that recommend never copying any files to the Windows system directory. It's preferred to leave all files in the PHP directory and make it (the PHP folder) available to the systems PATH by editing the appropriate system environment variable. People copy files into the Windows system directory because it's in the PATH so no additional setup is required. Do not fall into this trap. Add the PHP directory to your PATH as doing so will make the world a better place. The updated manual is as follows: http://php.net/manual/en/install.windows.manual.php If setup this way the above problem would not exist, PHP will find libmysql.dll. A FAQ on editing the systems path is here: http://php.net/manual/en/faq.installation.php#faq.installation.addtopath Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Cannot Load DLLs (WinXP, Apache 2, PHP 5)
Hi, I can't get PHP to load php_mysql.dll, required to use the mysql_*() functions. I have tried a variety of values for extension_dir, including C:/php/ext, C:\php\ext, C:\php\, ./ext/, ext/. I have copied php_mysql to all these directories, but it is not loading it. PHP is stored in C:/php, and works perfectly apart from not finding the MySQL dll file. If you could advise me for how to get PHP to load this DLL, I would be very grateful! Cheers, Chris -- Chris Jenkinson [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cannot Load DLLs (WinXP, Apache 2, PHP 5)
Chris Jenkinson wrote: I can't get PHP to load php_mysql.dll, required to use the mysql_*() functions. I have tried a variety of values for extension_dir, including C:/php/ext, C:\php\ext, C:\php\, ./ext/, ext/. I have copied php_mysql to all these directories, but it is not loading it. PHP is stored in C:/php, and works perfectly apart from not finding the MySQL dll file. If you could advise me for how to get PHP to load this DLL, I would be very grateful! This was just disussed a few days ago. Copy the libmysql.dll file **that comes with PHP5** into the windows/system32/ directory. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php