473,509 Members | 2,946 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unable to load dynamic library

Hi there,

When I try to connect to mysql, I get:
Fatal error: Call to undefined function mysql_connect() in D:\www\kviz
\scripts\data_connect.php on line 3
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext
\php_mysql.dll' - The specified module could not be found. in Unknown on
line 0

BUT, the interesting thing is that in my C:\PHP\ext there exists
php_mysql.dll. Sooo, why can't PHP load it?

--
"Now the storm has passed over me
I'm left to drift on a dead calm sea
And watch her forever through the cracks in the beams
Nailed across the doorways of the bedrooms of my dreams"
Mar 31 '06 #1
3 25158
Nikola Skoric wrote:
When I try to connect to mysql, I get:
Fatal error: Call to undefined function mysql_connect() in D:\www\kviz
\scripts\data_connect.php on line 3
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext
\php_mysql.dll' - The specified module could not be found. in Unknown on
line 0

BUT, the interesting thing is that in my C:\PHP\ext there exists
php_mysql.dll. Sooo, why can't PHP load it?


Hi Nikola,

Is libmysql.dll also in the searchpath? You could test if that's the
problem by copying libmysql.dll to the Windows folder and restart the
webserver.

HTH.

Peter.

--
http://www.phpforums.nl

Mar 31 '06 #2
In article <11**********************@j33g2000cwa.googlegroups .com>,
va************@gmail.com says...
Nikola Skoric wrote:
When I try to connect to mysql, I get:
Fatal error: Call to undefined function mysql_connect() in D:\www\kviz
\scripts\data_connect.php on line 3
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext
\php_mysql.dll' - The specified module could not be found. in Unknown on
line 0

BUT, the interesting thing is that in my C:\PHP\ext there exists
php_mysql.dll. Sooo, why can't PHP load it?


Hi Nikola,

Is libmysql.dll also in the searchpath?


Ah, silly me, silly me... I removed it from path accidentaly when
experimenting... Thanks for reminding me of obvious :-)

--
"Now the storm has passed over me
I'm left to drift on a dead calm sea
And watch her forever through the cracks in the beams
Nailed across the doorways of the bedrooms of my dreams"
Apr 1 '06 #3
I just worked through this problem. You can either add the
{your-php-path}/ext diretory to your PATH, or copy the
php_mysql.dll/php_mysqli.dll files to the Windows/System32 directory.
In either case, ** REBOOT ** This seems to be required.. as I
learned. Then all runs fine.. for either mysqli or mysql.

On 31 Mar 2006 13:09:58 -0800, "Peter van Schie"
<va************@gmail.com> wrote:
Nikola Skoric wrote:
When I try to connect to mysql, I get:
Fatal error: Call to undefined function mysql_connect() in D:\www\kviz
\scripts\data_connect.php on line 3
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext
\php_mysql.dll' - The specified module could not be found. in Unknown on
line 0

BUT, the interesting thing is that in my C:\PHP\ext there exists
php_mysql.dll. Sooo, why can't PHP load it?


Hi Nikola,

Is libmysql.dll also in the searchpath? You could test if that's the
problem by copying libmysql.dll to the Windows folder and restart the
webserver.

HTH.

Peter.

Apr 16 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
20603
by: Stefan | last post by:
Hi, I just downloaded PHP-4.3.3 for win32 and got the extensions folder and dropped it intot he root of the PHP directory and set it's path in the PHP.ini: extension_dir =...
3
22247
by: Willis Lang | last post by:
Warning: Unknown(): Unable to load dynamic library './php_oci8.dll' - Access is denied. Error keeps coming up on server. I made sure the security settings were set on the file and all...
19
13267
by: Nancy | last post by:
Hi, When I start my PC(winXP Pro), it always says: Unknown(): Unable toload dynamic library './php_msql.dll' - The specified module could not be found. Then my Apache servre starts, load php...
0
2839
by: Karim | last post by:
I am getting the error "unable to load dynamic libray php_mcrypt.dll...". I understand that php_mcrypt.dll depends on the existence of libmcrypt.dll library. I am using Windows 2003 and I have...
7
18241
by: ccp999 | last post by:
I keep getting this: "PHP Warning: PHP Startup: Unable to load dynamic library 'C:\php\ext\php_mysql.dll' - The specified module could not be found." when I tried to load the php_mysql.dll...
9
4579
by: Christopher Koeber | last post by:
Hello, I am attempting to perform a PHP installation on an Apache 2.2.6 web server instance that is loaded on a Windows 2003 server operating system (R2 SP2). I have a third party application...
0
7234
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7136
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7344
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7412
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7069
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5652
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3216
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.