[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PHP: mysql_connect() undefined function



On Thu, Aug 17, 2006 at 12:28:22PM +0200 or thereabouts, Paolo Pantaleo wrote:

[...]

> I think the error says that PHP doesn't know the function, not that
> there is an error executing the function.
> 
> So, finally googling around I found the solution:
> 
> in /etc/php/apache2/php.in
> 
> I uncommented the line
> 
> extension=mysql.so
> 
> This is because [so I read] the mysql support is bult-in for version
> 4, but not for version 5.

Exactly. My Google search on your behalf originally, stated such in much
of the responses.

Like I said previously, it wasn't enabled. The only difference is that
you are using PHP 5, which you didn't detail in your original post.

Anywho, good you've got it sorted. I still don't understand how
PHPMyAdmin could have connected to it, if it wasn't enabled in the first
place, web-server side.

-- 
Regards
Stephen
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
There is always one thing to remember: writers are always selling somebody out.
		-- Joan Didion, "Slouching Towards Bethlehem"
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Attachment: signature.asc
Description: Digital signature


Reply to: