MySQL Forums
Forum List  »  PHP

Re: Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\practice\testsql.php on line 17
Posted by: arie budansyah
Date: March 04, 2007 11:42AM

guys,

try to put this script in http.conf file
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"

at mime.types file
application/x-httpd-php php
application/x-httpd-php-source phps

at php.ini file
extension_dir = "C:\php\ext"

but please make sure you currently PHP directive folder. i used c:/php

and then please restart your apache.

it work at my pc.

regards,
Arie Budiansyah

Options: ReplyQuote


Subject
Written By
Posted
Re: Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\practice\testsql.php on line 17
March 04, 2007 11:42AM


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.