extension_dir = "d:/wamp/bin/php/php5.5.12/ext/" to extension_dir = "d:/wamp/bin/php/php7.0.6/ext/" zend_extension = "d:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11.dll" to ;zend_extension = "d:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11.dll" ;擴展部分修改成: ; Be sure to appropriately set the extension_dir directive. ; extension=php_bz2.dll extension=php_curl.dll ;extension=php_com_dotnet.dll ;extension=php_enchant.dll extension=php_fileinfo.dll ;extension=php_ftp.dll extension=php_gd2.dll extension=php_gettext.dll extension=php_gmp.dll extension=php_intl.dll extension=php_imap.dll ;extension=php_interbase.dll extension=php_ldap.dll extension=php_mbstring.dll extension=php_exif.dll ; Must be after mbstring as it depends on it extension=php_mysqli.dll ;extension=php_odbc.dll extension=php_openssl.dll ;extension=php_pdo_firebird.dll extension=php_pdo_mysql.dll ;extension=php_pdo_oci.dll ;extension=php_pdo_odbc.dll ;extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll ;extension=php_pgsql.dll ;extension=php_phpdbg_webhelper.dll ;extension=php_shmop.dll ; The MIBS data available in the PHP distribution must be installed. ; See [www.php.net] ;extension=php_snmp.dll extension=php_soap.dll extension=php_sockets.dll extension=php_sqlite3.dll ;extension=php_sysvshm.dll ;extension=php_tidy.dll extension=php_xmlrpc.dll extension=php_xsl.dll ;;;;;;;;;;;;;;;;;;; ; Module Settings ; ;;;;;;;;;;;;;;;;;;;
<?php $phpConf['phpIniDir'] = '.'; $phpConf['phpExeDir'] = '.'; $phpConf['phpConfFile'] = 'php.ini'; $phpConf['apache']['2.4']['LoadModuleName'] = 'php7_module'; $phpConf['apache']['2.4']['LoadModuleFile'] = 'php7apache2_4.dll'; $phpConf['apache']['2.4']['AddModule'] = ''; ?>
備註:wamp與php位數要統一,wamp爲x86,php必定要爲x86php