#50009 [Opn->Bgs]: Call to undefined function mysql_connect()
| From: | johannes@php.net | Date: | Tue, 27 Oct 2009 10:08:47 +0000 |
| Subject: | #50009 [Opn->Bgs]: Call to undefined function mysql_connect() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-144002@lists.php.net to get a copy of this message | ||
ID: 50009
Updated by: johannes@php.net
Reported By: khanyawar at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: MySQL related
Operating System: OEL 4.6 64Bit
PHP Version: 5.2.11
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
When compiling it shared you have to enable it in the (correct) php.ini
file. Please verify with phpinfo(). As this works for everybody else
this is a local configuration error, please see above mentioned
resources for further help.
Previous Comments:
------------------------------------------------------------------------
[2009-10-27 06:42:13] khanyawar at yahoo dot com
Description:
------------
when calling MySQL functions from php file, getting the following
error;
Fatal error: Call to undefined function mysql_connect() in
/usr/local/apache/htdocs/as/dbconnect.php on line 17
You might say that this is not a bug, but i have followed your
documentation and enabled MySQL support in the config statement. Why am
i still getting this issue?
Reproduce code:
---------------
I have used the following configuration for php
/configure --with-apxs2=/usr/local/apache/bin/apxs --with-libdir=lib64
--with-mysql=shared --prefix=/usr/local/apache/php
--with-config-file-path=/usr/local/apache/php
--with-config-file-scan-dir=/usr --with-zlib --with-gdbm --with-gettext
--with-xml --with-regex=system --enable-ftp --enable-inline-optimization
--enable-magic-quotes --enable-mbstring --enable-mm=shared
--enable-safe-mode --enable-track-vars --enable-trans-sid
--enable-wddx=shared --enable-xml --with-dom
Expected result:
----------------
database connection should be established
Actual result:
--------------
Fatal error: Call to undefined function mysql_connect() in
/usr/local/apache/htdocs/as/dbconnect.php on line 17
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50009&edit=1