MySQL Forums
Forum List  »  PHP

Re: Call to undefined function mysql_connect()
Posted by: arie budansyah
Date: March 04, 2007 11:28AM

emm.. truely, i faced the same problem. the error like below:

Fatal error: Call to undefined function mysql_connect() in E:\web\projek\webinterface\functions\functions.mysql.php on line 13

i try to figure out from many way to meet requirement php and apache but still getting error. the problem show up when i try to migrated php 4.39 to php 5.xx,

at previous version, my script getting well so.. i decided to migration latest one (PHP 5.xx). i had been tried php 5.xx but always get error like above.. i dont know where the error is..

anyway here the configuration i used:
WIndows XP
Apache 2.0.0
PHP 5.xx ( i had tried 5.0.2, 5.0.5, 5.2.1)

http.conf:
LoadModule php5_module "c:/php/php5apache2.dll"
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
SetEnv PHPRC "C:/php"

php.ini
extension=php_mysql.dll
PHPIniDir "C:/php"

error.log at apache
[Mon Mar 05 00:06:05 2007] [notice] Child 1592: Released the start mutex
[Mon Mar 05 00:06:06 2007] [notice] Child 1592: Waiting for 250 worker threads to exit.
[Mon Mar 05 00:06:06 2007] [notice] Child 1592: All worker threads have exited.
[Mon Mar 05 00:06:06 2007] [notice] Child 1592: Child process is exiting
[Mon Mar 05 00:06:06 2007] [notice] Parent: Child process exited successfully.
[Mon Mar 05 00:06:07 2007] [notice] Apache/2.0.58 (Win32) PHP/5.0.2 configured -- resuming normal operations
[Mon Mar 05 00:06:07 2007] [notice] Server built: Apr 29 2006 17:47:10
[Mon Mar 05 00:06:07 2007] [notice] Parent: Created child process 3480
[Mon Mar 05 00:06:07 2007] [notice] Child 3480: Child process is running
[Mon Mar 05 00:06:07 2007] [notice] Child 3480: Acquired the start mutex.
[Mon Mar 05 00:06:07 2007] [notice] Child 3480: Starting 250 worker threads.

there are anyones can guide what should i do.

Thanks.

cheers,
Arie Budiansyah

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.