Call to undefined function mysql_connect() 在httpd.conf文件里在LoadModule php5_module "c:/php/php5apache2_2.dll"下面追加如下语句即可: PHPIniDir "c:/php"