Board index   FAQ   Search  
Register  Login
Board index PHP PHP Installation

MYSQL Functions not recognized in PHP code

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

MYSQL Functions not recognized in PHP code

Postby antbi » Thu Dec 13, 2012 10:43 pm

I just recently set up Apache 2.2, PHP 5.2.17, and MYSQL server 5.5 on Windows server 2008. Everything is setup correctly except when running PHP scripts I'm receiving "undefined function" errors for all mysql functions (mysql_pconnect, mysql_select_db, etc. etc.).

Here is what has been done so far:

1. PHP has been installed to C:\Program files\PHP. php.ini was created from copying php.ini-dist into it. The following has been modified in php.ini:

extension_dir="c:/Program Files/php/ext"
doc_root="c:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
extension=php_mysql.dll and extension=php_mysqli.dll have both been uncommented.

2. Within C:\Program files\PHP the libmysql.dll file has been copied into system 32 and C:\Program files\PHP\libmysql.dll has also been added to PATH.

Also I want to get a better understanding of what is going on.Generally how do PHP docs local the MYSQL function library? I'm fairly new to this, any words of wisdom would be appreciated.
antbi
New php-forum User
New php-forum User
 
Posts: 1
Joined: Thu Dec 13, 2012 10:18 pm

Re: MYSQL Functions not recognized in PHP code

Postby calipusphp » Tue Mar 05, 2013 2:01 am

Make sure you are editing right php.ini file

and also make sure that these extensions are installed with php.

Don't forget to restart apache.

Thanks
php development company
calipusphp
New php-forum User
New php-forum User
 
Posts: 1
Joined: Tue Feb 12, 2013 4:40 am


Return to PHP Installation

Who is online

Users browsing this forum: Bing [Bot] and 3 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.