Ec (2); recently, I had a strong interest in PHP, so I decided to study it. First, install. Step 1: install Apache & nbsp; download the Apache2.2 installation package from apache, install and run the package, enter the address 127.0.0.1: 8080 in the browser. & ldquo; ItWorks is displayed! & Rdquo;, installed successfully. Step 2: Install PHP5 & nbsp script ec (2); script
Recently, I had a strong interest in PHP, so I decided to study it. First, install.
Step 1: install Apache
Download the Apache2.2 installation package from apache, install and run It, and enter the address 127.0.0.1: 8080 in the browser. "It Works!" appears !", The installation is successful.
Step 2: Install PHP5
Download the windows Installation Package from cn2.php.net and run the installation package. You can see the page for selecting the extension. If you choose all, install OK. Run Apache again. An error is reported. If the DLL is missing, PHP cannot be started. It seems that the extension is not randomly selected. Run the installer again, cancel all extensions, and run Apache again. OK. Write a page and add , Open the browser, It's OK.
Install phpmyadmin, download an installation package from google, decompress it to the apache htdocs directory, run it, and prompt that MySQL extension is not installed. Run the installation program again, modify the installation options, and add MySQL extension, then run phpmyadmin again, and the system prompts that there is no MySQL extension. Well, nothing is simple.
Check the PHP document and say that the best installation method is manual installation. If you suspect that the installation package is incorrect, uninstall, download the PHP manual installation package, decompress the package, and add it to httpd. conf according to the instructions.
# Configure the php. ini path
PHPIniDir "C:/php5 /"
# Use these two lines for PHP 5:
LoadModule php5_module "c:/php5/php5apache2_2.dll"
AddType application/x-httpd-php. php
Copy php. ini-dist to php. ini, remove the semicolon before the MySQL extension, start apache, run phpmyadmin, or prompt that there is no MySQL extension. Check the installation process carefully. C:/PHP5 is added to the environment variable Path, which is php. extension_path in ini is also changed, httpd. the PHPIniDir, C:/PHP5/, and libmysql exists in the conf file. dll file, which fully complies with the description of the document and has no omissions, that is, it cannot be found. CRASH ing
After several days, google failed to handle the problem countless times. Later, he was worried about the problem and copied libmysql. dll to Windowssystem32. The MySQL extension was successfully installed. Fainted. It is not recommended to copy the file.Php5ts. dllAdd the PHP Directory to the system directoryPATHThe environment variable can be used to find the DLL. It seems that only php5ts. dll can be found and the DLL required for expansion cannot be found?
3. Build a Development Environment
Of course, my first choice is Eclipse. Download PDT and there is no problem with code prompts and Automatic completion. Please try the Debug capability. Open the Eclipse help and find the PDT Debug section, according to the help prompt, I tried the debugging function,