JP128 Posted June 25, 2006 Share Posted June 25, 2006 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? Link to comment https://forums.phpfreaks.com/topic/12888-apache-with-php/ Share on other sites More sharing options...
adamwhiles Posted June 25, 2006 Share Posted June 25, 2006 Can you please post your PHP code your trying to use? Link to comment https://forums.phpfreaks.com/topic/12888-apache-with-php/#findComment-49475 Share on other sites More sharing options...
trq Posted June 25, 2006 Share Posted June 25, 2006 [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Anyone know how to fix that?[/quote]Compile php with support for mysql. Link to comment https://forums.phpfreaks.com/topic/12888-apache-with-php/#findComment-49484 Share on other sites More sharing options...
JP128 Posted June 25, 2006 Author Share Posted June 25, 2006 I am not compiling... I am just setting it up with apache Link to comment https://forums.phpfreaks.com/topic/12888-apache-with-php/#findComment-49486 Share on other sites More sharing options...
trq Posted June 25, 2006 Share Posted June 25, 2006 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. Link to comment https://forums.phpfreaks.com/topic/12888-apache-with-php/#findComment-49487 Share on other sites More sharing options...
JP128 Posted June 25, 2006 Author Share Posted June 25, 2006 nope, still same error Link to comment https://forums.phpfreaks.com/topic/12888-apache-with-php/#findComment-49488 Share on other sites More sharing options...
trq Posted June 25, 2006 Share Posted June 25, 2006 How have you installed apache, php and mysql? And what OS are you using? Link to comment https://forums.phpfreaks.com/topic/12888-apache-with-php/#findComment-49491 Share on other sites More sharing options...
JP128 Posted June 25, 2006 Author Share Posted June 25, 2006 I installed it from website... apache.org. the MSI. Also I have Windows XP Link to comment https://forums.phpfreaks.com/topic/12888-apache-with-php/#findComment-49494 Share on other sites More sharing options...
trq Posted June 25, 2006 Share Posted June 25, 2006 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]. Link to comment https://forums.phpfreaks.com/topic/12888-apache-with-php/#findComment-49495 Share on other sites More sharing options...
JP128 Posted June 26, 2006 Author Share Posted June 26, 2006 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 Link to comment https://forums.phpfreaks.com/topic/12888-apache-with-php/#findComment-49497 Share on other sites More sharing options...
wildteen88 Posted June 26, 2006 Share Posted June 26, 2006 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=0entry387967\" 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. Link to comment https://forums.phpfreaks.com/topic/12888-apache-with-php/#findComment-49585 Share on other sites More sharing options...
Recommended Posts