473,738 Members | 7,110 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to configure PHP5 to use MySQL in Windows XP

I use PHP5 in Windows XP Professional with Apache and MySQL installed. I
would like to use MySQL. Now, I cannot use mysql_* functions because
mysql_connect(. ..) returns
Fatal error: Call to undefined function mysql_connect()
PHP is problably not correctly configured to use MySQL. I think so, because
when I open:
localhost/phpinfo.php
I receive no information about MySQL.
So far, I have modified c:\windows\php. ini:
;;;;;;;;;;;;;;; ;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;; ;;;;;;;
extension_dir = "c:/windows"
extension=php_m ysql.dll
extension=php_m ysqli.dll
extension=libmy sql.dll
But it is probably not correct or not enough, I suspect. All *mysql*.dll
files are in c:\windows folder.
Could you help me plase?
/RAM/
Feb 20 '08 #1
3 2140
On Feb 20, 5:09 am, "R.A.M." <r_ahims...@poc zta.onet.plwrot e:
I use PHP5 in Windows XP Professional with Apache and MySQL installed. I
would like to use MySQL. Now, I cannot use mysql_* functions because
mysql_connect(. ..) returns
Fatal error: Call to undefined function mysql_connect()
PHP is problably not correctly configured to use MySQL. I think so, because
when I open:
localhost/phpinfo.php
I receive no information about MySQL.
So far, I have modified c:\windows\php. ini:
;;;;;;;;;;;;;;; ;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;; ;;;;;;;
extension_dir = "c:/windows"
extension=php_m ysql.dll
extension=php_m ysqli.dll
extension=libmy sql.dll
But it is probably not correct or not enough, I suspect. All *mysql*.dll
files are in c:\windows folder.
Could you help me plase?
/RAM/
did you restart apache after changing your php.ini file? If your
running php as a module you need to restart.
Feb 20 '08 #2
Uzytkownik "ELINTPimp" <sm*****@gmail. comnapisal w wiadomosci
news:3c******** *************** ***********@b29 g2000hsa.google groups.com...
did you restart apache after changing your php.ini file? If your
running php as a module you need to restart.
Yes, I rebooted my computer. Still, the same problem.
/RAM/
Feb 20 '08 #3
Greetings, R.A.M..
In reply to Your message dated Wednesday, February 20, 2008, 13:09:19,
I use PHP5 in Windows XP Professional with Apache and MySQL installed. I
would like to use MySQL. Now, I cannot use mysql_* functions because
mysql_connect(. ..) returns
Fatal error: Call to undefined function mysql_connect()
PHP is problably not correctly configured to use MySQL. I think so, because
when I open:
localhost/phpinfo.php
I receive no information about MySQL.
So far, I have modified c:\windows\php. ini:
;;;;;;;;;;;;;;; ;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;; ;;;;;;;
extension_dir = "c:/windows"
??????????????? ??????????????? ???????
I *hope* You didn't install PHP into Your Windows directory...
extension=php_m ysql.dll
extension=php_m ysqli.dll
extension=libmy sql.dll
But it is probably not correct or not enough, I suspect. All *mysql*.dll
files are in c:\windows folder.
Could you help me plase?
Install Your PHP into separate directory as intended.
It may be C:\php or whatever You prefer.
Point the extension_dir to the C:\php\ext (i.e.) where all extensions is
located.
--
Sincerely Yours, AnrDaemon <an*******@free mail.ru>

Feb 20 '08 #4

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

Similar topics

6
4756
by: Spidah | last post by:
Looking at the list of changes made in PHP5 one of them is "Removed the bundled MySQL client library" Does anyone know exactly what this means? I assume we will still be able to code for MySQL as we do now? Thanks Hamilton
4
3304
by: Philipp Lenssen | last post by:
OK, I can get PHP5 running on Apache 2 installed on Windows XP Home Edition. Now I want to add MySQL4 to the package. I installed it but I'm not sure what to do now. My PHP5 scripts are running fine. The MySQL server seems to be running though actually I'm not sure. When I write $link = mysql_connect("localhost", "mysql"); I get the PHP5 error message "Call to undefined function mysql_connect()" Can anyone help? (Or should I be using...
12
3619
by: Sarah Tanembaum | last post by:
Though I installed MySQL5 and PHP5, how come my phpinfo() shows as follow: MySQL Support enabled Active Persistent Links 0 Active Links 0 Client API version 3.23.57 <<<<<<<<<<<<<<< Instead of saying 3.23.57, shouldn't it show 5.xx.xx? Or, did I do something wrong?
3
4620
by: AC | last post by:
Does the Windows Installer version of PHP5 come with MySQL support? As well, how hard is it to add extensions to the Windows Installer version? -- Aaron Clausen mightymartianca@hotmail.com "My illness is due to my doctor's insistence that I drink milk, a whitish fluid they force down helpless babies." - WC Fields
0
2138
by: Roy Shaw | last post by:
When configuring PHP5 (5.0.3) to use the mysqli libraries I get a "No such file or directory" from the configure script. My goal is to get PHP5 running with mysql 4.1.09 with both the mysql and mysqli options. I can get it to configure and work correctly with just the mysql but NOT the mysqli or both. Environment: Red Hat Enterprise Linux 3, rel 4 php 5.0.3 from sources from php.net
1
1882
by: Nospam | last post by:
I am trying to get mysql 4, php5, and apache to work on my winxp sp2 comp, unfortunately even though php5 and apache seems to work ok I am unable to utilise mysql with php and apache, I have yet to see a guide that has a problem free installation, if there is such a guide or a fix on how to get php5, apache and mysql all working on winxp sp2, after having moved libmysql.dll to the c:\php directory as well as the c:\windows\system...
6
18711
by: frustratedcoder | last post by:
I have tried to find a good ref. on how to enable soap and mysql in PHP5 on windows xp but without luck. Can any one take me through the process? I need to enable both soap and mysql I'm not running apache. I need to know how to recomplie my PHP5 on windows xp.
8
7096
by: deko | last post by:
I've just loaded phpMyAdmin on a Debian Linux server with Apache2, MySql5 and PHP5. myserver # dpkg -l | grep php ii libapache-mod-php5 5.2.0-8+etch4 ii libapache2-mod-php4 4.4.4-8+etch2 ii php4-common 4.4.4-8+etch2 ii php5-common 5.2.0-8+etch4 ii php5-gd 5.2.0-8+etch4 ii php5-mcrypt 5.2.0-8+etch4
3
4108
by: kodaliece | last post by:
Hello Everyone, I am trying to configure Tomcat5.5 to run PHP5.2.5 scripts on linux machine. I got some information from http://wiki.apache.org/tomcat/UsingPhp as how to do this. First, It says to apply patch to configuration file and then apply a patch to sapi/servlet/servlet.java. But I am stuck at the first step it self. In the first step it says to apply a patch. But I could not get which file I've to modigy and where. I firmly...
0
8969
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8788
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9476
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9263
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8210
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6751
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6053
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2745
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.