473,503 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP 5.2.1: cli does load php_mysql.dll while the same script executed by apache 2.2 fails Call to undefined function mysql_connect()

Hi there!

After I overcame some short_open_tag (thanks, Rik!) I encounter
another strange php-behaviour. The script I just got to work on the
windows-commandline obviously does as php.ini tells php to do and
loads php_mysql.dll:

E:\ersDHCP>php ./extractLog.php
.... some mysql-stuff, some output, OK

The same script invoked by the webserver apache 2.2 entails an error:

http://localhost/extractLog.php
PHP Fatal error: Call to undefined function mysql_connect()

My configuration php.ini does contain the line extension=php_mysql.dll
and seems to be OK while I use the script from commandline. Is there
anybody who can give me a hint where to cope with this error?

Take care,

Christian

Mar 9 '07 #1
0 1653

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

Similar topics

0
2055
by: W i l l | last post by:
I have Apache 2 parsing and serving PHP files just fine on my winXP box, however, when I try to add some mysql database functionality I get a warning that looks like this: Fatal error: Call to...
1
2733
by: Alex Popescu | last post by:
I have apache2, mysql 4.0.21 and php 5.0.2.on xp pro. All works fine up to the point where I enable the php_mysql.dll module in php.ini. I followed the instructions and copied libmysql.dll to...
2
2524
by: R | last post by:
Hi. I have just reintalled my computer and with that; PHP. But.. I keep getting the error: PHP Startup: Unable to load dynamic library 'C:\PHP\modules\php_mysql.dll' - The specified module...
3
2229
by: John Thingstad | last post by:
I am running php 5 against a apache 2 server under WindowsXP. I have php installed at c:/php and extentions at c:/php/ext. extensions_dir is set correctly and extention php_mysql is declared. I...
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...
3
1581
by: Martin | last post by:
I'm having trouble getting a new PHP/MySQl installation to work. Windows XP Pro, IIS 5.1, PHP 5.1.1, MySQL 5.0.16, ISAPI This is a new computer. The whole setup is for development use only -...
3
25158
by: Nikola Skoric | last post by:
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...
7
2828
by: laptopia | last post by:
I need to build, very quickly, implement a form that will add to a database two text fields and store store an image associated with this record. All my experience with this is from ASP and...
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
7203
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
7281
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
7334
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...
0
7462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5579
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
4675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1514
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 ...
0
383
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.