Connecting Tech Pros Worldwide Forums | Help | Site Map

Unable to load dynamic library

Nikola Skoric
Guest
 
Posts: n/a
#1: Mar 31 '06
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"

Peter van Schie
Guest
 
Posts: n/a
#2: Mar 31 '06

re: Unable to load dynamic library


Nikola Skoric wrote:
[color=blue]
> 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?[/color]

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

Nikola Skoric
Guest
 
Posts: n/a
#3: Apr 1 '06

re: Unable to load dynamic library


In article <1143839398.324580.221590@j33g2000cwa.googlegroups .com>,
vanschie.peter@gmail.com says...[color=blue]
> Nikola Skoric wrote:
>[color=green]
> > 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?[/color]
>
> Hi Nikola,
>
> Is libmysql.dll also in the searchpath?[/color]

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"
leoun14580@forteinc.com
Guest
 
Posts: n/a
#4: Apr 16 '06

re: Unable to load dynamic library


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"
<vanschie.peter@gmail.com> wrote:
[color=blue]
>Nikola Skoric wrote:
>[color=green]
>> 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?[/color]
>
>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.[/color]
Closed Thread