Jump to content

Archived

This topic is now archived and is closed to further replies.

JP128

Apache with PHP

Recommended Posts

I get an error when I try to connect to a mysql db...

Fatal Error: Undefined function mysql_connect()


Anyone know how to fix that?

Share this post


Link to post
Share on other sites
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Anyone know how to fix that?[/quote]
Compile php with support for mysql.

Share this post


Link to post
Share on other sites
I am not compiling... I am just setting it up with apache

Share this post


Link to post
Share on other sites
How have you installed apache, php and mysql?

maybe [a href=\"http://phpbuilder.com/board/showthread.php?t=10246585\" target=\"_blank\"]this[/a] will help you out.

Share this post


Link to post
Share on other sites
How have you installed apache, php and mysql? And what OS are you using?

Share this post


Link to post
Share on other sites
I installed it from website... apache.org. the MSI. Also I have Windows XP

Share this post


Link to post
Share on other sites
We need more details. What steps have you taken to configure apache, php and mysql?

Really, sounds like you should probably just download and install something like [a href=\"http://www.apachefriends.org/en/xampp.html\" target=\"_blank\"]xampp[/a].

Share this post


Link to post
Share on other sites
I configured the php to use mysql, just as a guide told me to do. then I changed like 2 settings in http.conf. But I get that error

Share this post


Link to post
Share on other sites
Thread closed you already posted this problem in the PHP Installation forum. Please do not post duplicat threads around the forum.

[a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=96797&pid=387967&st=0&#entry387967\" target=\"_blank\"]Link to post[/a]

Also I would recommend you to download the zipped binaries rather than the MSI package for PHP. PHP doesnt need an installer if you're using Apache. With the zipped binaries you can just extract the contents of the file to where you want php to be installed to.

Also reason why you are getting that error is because there was a license change between PHP and MySQL. Thats whay PHP no more comes with built in MySQL support. In order to use mysql functions you need to enable the mysql extension.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.