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: Eugin Song
Date: January 21, 2007 08:23AM

Hi

I struggled with this problem as well.
I'm using PHP 5.2.0 Apache 2.2 MySQL 5.0.27

What resolved it for me in the end was the differences in path settings in php.ini between the file on my ISP and file on my Localhost. On ISP server the following php.ini path is accepted:

".:/php/ext"

However, on local host installation the above path would not work.
I had to rewrite as:

"C:\php\ext"

It then worked.
I think for this reason as well if you just rename the default php.ini-recommended it will not work either. I ended up with a blank page when I did this.

Hope this helps!

EuGin

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
January 21, 2007 08:23AM


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.