That's the thrill of living in the Hellmouth! There's a veritable cornucopia of fiends and devils and ghouls to engage ... Pardon me for finding the glass half-full.

Giles ,'Same Time, Same Place'


Buffistechnology 3: "Press Some Buttons, See What Happens."

Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!


Tom Scola - Apr 13, 2011 10:49:23 am PDT #16508 of 25501
Remember that the frontier of the Rebellion is everywhere. And even the smallest act of insurrection pushes our lines forward.

Heh.


Calli - Apr 13, 2011 11:02:20 am PDT #16509 of 25501
I must obey the inscrutable exhortations of my soul—Calvin and Hobbs

I was wondering if someone here could help me with a PHP/MySQL problem, please. I'm taking an eLearning course in an attempt to learn PHP/MySQL. So far I've installed PHP, Apache, and MySQL on my Windows XP laptop. Everything went fine until I was attempting to run a php file to test whether PHP had MySQL enabled. I got the error:

Fatal error: Call to undefined function mysql_connect() in c:program filesapache groupApachehtdocsmysql_connect.php on line 2

I thought I'd edited the php.ini file to enable php_mysql.dll . When I ran the phpinfo file it said the php.ini file was in the WINDOWS folder, and that's the one I edited. I restarted apache.

I'm not sure how to proceed. Suggestions?


Tom Scola - Apr 13, 2011 11:03:32 am PDT #16510 of 25501
Remember that the frontier of the Rebellion is everywhere. And even the smallest act of insurrection pushes our lines forward.

Look in the errors logfile?


amych - Apr 13, 2011 11:05:42 am PDT #16511 of 25501
Now let us crush something soft and watch it fountain blood. That is a girlish thing to want to do, yes?

I'm assuming the course is more focused on writing php than system administration? In that case, I strongly recommend that you skip installing and configuring everything by hand and just use XAMPP: [link]


Calli - Apr 13, 2011 11:11:30 am PDT #16512 of 25501
I must obey the inscrutable exhortations of my soul—Calvin and Hobbs

Unfortunately, installing and configuring everything myself is part of the course which I need to pass (it's a work thing).

I'll be happy to look in the errors logfile. Where might that sort of thing live?


Tom Scola - Apr 13, 2011 11:13:56 am PDT #16513 of 25501
Remember that the frontier of the Rebellion is everywhere. And even the smallest act of insurrection pushes our lines forward.

There should be an entry for where the error file lives in the httpd.conf file.


Calli - Apr 13, 2011 11:15:09 am PDT #16514 of 25501
I must obey the inscrutable exhortations of my soul—Calvin and Hobbs

OK, thank you. And where does the httpd.conf file live?


amych - Apr 13, 2011 11:16:38 am PDT #16515 of 25501
Now let us crush something soft and watch it fountain blood. That is a girlish thing to want to do, yes?

Ah - in that case, carry on with your error logging. And if you're ever looking for a php environment that's easier to set up once you're done with the class, XAMPP (or MAMP, which is a Mac-only thingie along the same lines) makes it very easy. Not something you'd use for an actual server, but I use it on all my machines when I want to run a local test/development environment.


Calli - Apr 13, 2011 11:28:05 am PDT #16516 of 25501
I must obey the inscrutable exhortations of my soul—Calvin and Hobbs

Thanks, amych. Yeah, this course seems overkill for what I'm planning to do, but it's what they want me to take. And I don't mind learning the installation stuff--I've just hit a wall with it.


Jon B. - Apr 13, 2011 11:36:55 am PDT #16517 of 25501
A turkey in every toilet -- only in America!

amych -- How does XAMPP compare with WAMP? Have you tried both? I played with the latter a while back and it was pretty easy to set up.