Author |
|
zerocool
Joined: 08 Jan 2007 Posts: 6
|
Posted: Tue 09 Jan '07 8:43 Post subject: help me about php mysql and apache |
|
|
hello every body
i have installed php mysql and apache on my machine php and apache are working fine but cannot connect to mysql it do all the step in the following link for installing php apache and mysql
http://www.ricocheting.com/server/
got this error
Fatal error: Call to undefined function mysql_connect()
help me plz |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7355 Location: Germany, Next to Hamburg
|
Posted: Tue 09 Jan '07 10:33 Post subject: |
|
|
Download the mysql test and check out if php_mysql.dll is loaded in php.ini |
|
Back to top |
|
zerocool
Joined: 08 Jan 2007 Posts: 6
|
Posted: Tue 09 Jan '07 15:43 Post subject: php mysql apache |
|
|
u send me the good example it working good with cli but not working in web pages. it give me error extention not installed
php MySQL extension not loaded
but it working good with cli plz help me little bit what's the problem. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7355 Location: Germany, Next to Hamburg
|
Posted: Tue 09 Jan '07 16:13 Post subject: |
|
|
run a simple script
<?php
phpinfo();
?>
There is shown where your php.ini is located. maybe you have to set that in httpd.conf
Please the the php section of this tutorial for that
http://www.apachelounge.com/viewtopic.php?t=570 |
|
Back to top |
|
zerocool
Joined: 08 Jan 2007 Posts: 6
|
Posted: Tue 09 Jan '07 21:25 Post subject: here is my php.ini file linke |
|
|
hello
here im sending the my php.ini file link which i uploaded plz check and tell me what the problem here is....
http://zerocard.siteburg.com/info.php.htm
# configure the path to php.ini
PHPIniDir "c:/php5"
in above line configure path to php.ini file but we put php.ini file in windows folder can we set the path of
PHPIniDir "c:/windows"
to or not |
|
Back to top |
|
zerocool
Joined: 08 Jan 2007 Posts: 6
|
Posted: Wed 10 Jan '07 7:38 Post subject: really works |
|
|
its really work i set the PHPIniDir to the windows thanx for helping
# configure the path to php.ini
PHPIniDir "c:/php5"
i set the
PHPIniDir "c:/windows"
now mysql php and apache working good |
|
Back to top |
|