PHP has a strong interest in the recent days, so decided to learn. The first is the installation.
First step, install Apache
Download Apache2.2 installation package from Apache, install, run, browser enter address 127.0.0.1:8080, appear "It works! ", the installation was successful.
Step two, install PHP5
Download the Windows Installer from Cn2.php.net, run the installation, see the option to expand the interface, take for granted all the options, install OK. Run Apache again, error, missing DLL, can't start PHP. It seems that the extension is not a random choice, run Setup again, cancel all extensions, and run Apache,ok again. Write a page, add <?php phpinfo (), browser Open, It ' s OK.
Install phpMyAdmin Bar, Google a installation package download, extract to the Apache Htdocs directory, run, prompted not to install MySQL extensions, easy, run Setup again, modify installation options, plus MySQL extension, Then run phpMyAdmin again, or hint that there is no MySQL extension. Well, there's nothing simple about it.
View PHP documentation, said that the best way to install is manually installed, suspected to be installing the package problem, uninstall, download PHP manual installation package, decompression, according to the documentation, Add
in httpd.conf # Configure php.ini path
phpinidir "c:/php5/"
# for PHP 5 with these two lines:
LoadModule php5_module "C:/php5/php5apache2_2.dll"
AddType application/x-httpd-php. PHP
, and then copy php.ini-dist for php.ini, remove the semicolon from the gd2,mysql extension, start Apache, run phpMyAdmin, Or the hint does not have MySQL extension. Carefully check the installation process, C:/PHP5 added to the environment variable path, php.ini in Extension_path also changed, Httpd.conf also joined the phpinidir,c:/php5/ There is indeed a Libmysql.dll file, fully compliant with the description of the document, there is no omission, is not found. Crash ing
The reference around for several days, Google countless times, also did not fix, then the disease nasty disorderly Touyi, will libmysql.dll copy to Windowssystem32 under, MySQL extended installation success. Faint, the document said not to recommend copying Php5ts.dll to the system directory, add PHP directory to the PATH environment variable can find the DLL, it seems only to find Php5ts.dll, can not find the extension required DLL?
Third, build the development environment
My first choice of course is Eclipse, download PDT, code hints, automatic completion no problem, try the debug ability, open Eclipse help, find the PDT Debug section, follow the help prompts to try the debugging function,