sweinkauf13 Posted October 31, 2008 Share Posted October 31, 2008 Ok. I know this must be getting annoying to the people who have this set up right, but i need ur help. I'm having(obviously) a mysql_connect() problem. when i try connecting using php, it gives me the function undefined error and i don't know what to do about it. i have uncommented the extension for it and checked my path to my extensions, checked to make sure it's using the right php.ini file, restarted apache (got no error messages and server is still on). I don't know what else to do. PLEASE HELP ME!!! I've been struggling with this for over a month and am sick of this not working. I will give any info that you need to help me and answer any questions u need answered. I REALLY NEED YOUR HELP!!!,youngwebmaster Link to comment Share on other sites More sharing options...
jlhaslip Posted October 31, 2008 Share Posted October 31, 2008 Are you running a Server on your local machine?Did you download separate packages? or a one-click installer like XAMPP or WAMP??? (suggested) Link to comment Share on other sites More sharing options...
markfh11q Posted October 31, 2008 Share Posted October 31, 2008 If you're using Apache, you need to enable it in the configuration file.PHP.net has good information on how to install separate packages. Everything I have installed on my computer I installed separately, but the packages are definitely easier. Link to comment Share on other sites More sharing options...
sweinkauf13 Posted November 1, 2008 Author Share Posted November 1, 2008 I know i'm gonna sound like a noob when i say this but, php.net is way to confusing. i've tried to use them and i just don't understand them. I did not use a package install like wamp. But, i did not do a manual build either. I don't know the technical name for what i did, i just installed php, apache and mysql using instruction from a book. (PHP 6 by Julie Meloni And Matt Telles). I did what they said and i can't get php and mysql to play nicely together. If you can point out a specific page from php.net that would be great. Or ,(usuming you all have configuered this before), walk me through the configuration.Sorry, but i'm really not getting this,Youngwebmaster Link to comment Share on other sites More sharing options...
MinusMyThoughts Posted November 1, 2008 Share Posted November 1, 2008 The first time I set up PHP and MySQL with Apache on a local machine, it took me four complete install/tear down/reinstall attempts before I got it right.I would recommend starting from scratch with your installation, and just make absolutely certain you're following EVERY step in the guide you're using. More than likely there was one little (seemingly) insignificant step that was overlooked, and that's causing the problem.Not the easiest solution, but, hey! practice makes perfect, right?-Jason Link to comment Share on other sites More sharing options...
sweinkauf13 Posted November 2, 2008 Author Share Posted November 2, 2008 Ya. I will more then likely end up doing that again but need to know if there is some way that i can fix it without completly uninstalling and re-installing apache and php? There has to be a way to do this. Right?-youngwebmaster Link to comment Share on other sites More sharing options...
jlhaslip Posted November 2, 2008 Share Posted November 2, 2008 XAMPPUninstall and use XAMPP or WAMP to get it working first, and then you can play with the settings. XAMPP has never failed to work for me out-of-the-box.WAMP is good, too, just that I have never installed it, but it is as simple to install. Link to comment Share on other sites More sharing options...
sweinkauf13 Posted November 2, 2008 Author Share Posted November 2, 2008 Does XAMPP have mysql already configured? And because i dont know much, are those packages including apache web server and php? Link to comment Share on other sites More sharing options...
jlhaslip Posted November 2, 2008 Share Posted November 2, 2008 Apache, Mysql, Mail Server, PHP, PERL, Phpmyadmin, Awstats, and others all in one big happy package. Link to comment Share on other sites More sharing options...
sweinkauf13 Posted November 5, 2008 Author Share Posted November 5, 2008 ok. i'll try that. I'll write back after i get XAMPP up and going and test my mysql_connect(). Thanks and ttyl,youngwebmaster Link to comment Share on other sites More sharing options...
sweinkauf13 Posted November 5, 2008 Author Share Posted November 5, 2008 Ok. This is lame but where do i get the XAMPP package? php.net? Link to comment Share on other sites More sharing options...
jlhaslip Posted November 5, 2008 Share Posted November 5, 2008 Is Google down?http://apachefriends.org Link to comment Share on other sites More sharing options...
sweinkauf13 Posted November 7, 2008 Author Share Posted November 7, 2008 Ok, I have XAMPP installed and i tested the mysql_connect() function and it worked. Thank you. I know this is off topic but for the mercury mail transport thats build-in, how do i read emails that were sent to example@localhost ? I guess basicly i'm asking that and how do i set up this mail server? Link to comment Share on other sites More sharing options...
jlhaslip Posted November 8, 2008 Share Posted November 8, 2008 no clue. I have never installed a mail server locally. Link to comment Share on other sites More sharing options...
sweinkauf13 Posted November 9, 2008 Author Share Posted November 9, 2008 ok, does anyone else know how to do this or where i could go to get help with it? Link to comment Share on other sites More sharing options...
sweinkauf13 Posted November 9, 2008 Author Share Posted November 9, 2008 I think i'll just start another topic on this Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.