Home  |  Linux  | Mysql  | PHP  | XML
From:andrew jarcho Date:Tue Mar  2 15:39:17 2010
Subject:Re: 64-bit Linux -- Fatal ... undefined function
mysql_connect()
On Tue, Mar 2, 2010 at 12:25 AM, Chris <dmagick@gmail.com> wrote:
> andrew jarcho wrote:
>>
>> Hello all,
>>
>> I'm running Fedora 12 (64-bit), Apache 2.2.14, PHP 5.3.1, MySQL
>> 5.1.42, on a Dell laptop.
>
> <snip>
>
>> I get the message:
>>
>> Fatal error: Call to undefined function mysql_connect()
>
> <snip>
>
>> The output of my phpinfo() includes:
>
> Is that from command line or webpage? They may read different php.ini files.
>
> # php -i | grep mysql
>
> return anything from the command line?
>
> which config is it reading?
>
> # php -i | grep php.ini
>
> Is it the one you were editing previously?
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
>
>

Thanks *very* much to all who replied. This question has occupied most
of my time for two full days and it's a tremendous relief to know that
I'm not alone in my struggles.

As it turns out, php *was* trying to read a different .ini file when
invoked from the command line than when invoked via browser. I say
'trying to' because I had changed the name of the alternate php.ini to
'deactivate' it. I assumed that since php still worked in the browser,
I didn't need the other .ini.

I reactivated the alternate php.ini, told it the path to mysql.so, and
everything works as advertised.

I know with this version of php, I should be using mysqli.so, so
that's my next step.

Thanks again to everybody,

Andy
Navigate in group php.db at sever news.php.net
Previous Next


Your recent visits
RegExp
Re: [PHP-DB] Need Help
Re: [PHP-DB] FW: Oracle Finalizes Acquisition of Sun
httpd.exe crash. Apache/2.2.11 (Win32) PHP/5.2.9-2 php_mysqli.dll
FW: semaphores WAS: [PHP-DB] Automatic logoff



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants