Learning front-end is, using the ajax,php language, operation MySQL database, the browser can not parse PHP code (the source output); I used the Tomcat server to write jsp,servlet,php with the Apache server, no configuration.
WORKAROUND: 1. Replace PHP with Jsp,servlet to make the database.
2. Download, configure the Apache server (more cumbersome), it is recommended to download the integrated
2.1 Phpstyle; Integrated Apache+php+mysql+phpmyadmin+zendoptimizer, one-time installation, without configuration can be used, is very convenient and easy to use PHP debugging environment • The program not only includes the PHP debugging environment, but also includes development tools, development manuals, etc. · Anyway, learning PHP requires only one package. : http://www.phpstudy.net/
2.2 XAMPP: an integrated Apache suite. Xampp including Apache, MySQL, PHP, PERL, direct decompression, no complicated installation process, highly recommended for beginners to use; Official website http://www.xampps.com/
I'm phpstyle. Take this as an example (depressed)
Open failed, found that 80 port is disabled, first of all to exclude IIS service port is 80, this service is not started (I am manual), and thunder, etc., some software may also occupy 80 port.
SQL Server
and the SQL Server port number is not 80/3306
Finally, run Netstat-ano on the command line and discover that port 80 is actually occupied. The PID is found to be 4, and the name is System. The workaround is: 1. In the Run CMD window open the registry, enter Regedit 2. Open as follows: Hkey_local_machine\system\currentcontrolset\services\http (click HTTP) 3. Find a name called: Start, type: REG_DWORD, right-click Modify, change its value data (originally 3) to 0, click OK to save the changes
4. System process does not consume 80 ports when rebooting
Test: Shut down reboot, open Phpstyle
Note:Or quite when you start the computer again, the 80 port is used by the system, in which case the workaround is to set the HTTP folder permissions for the start item to system reject!
The Phpstyle Apache 80 port is win7 by the process used by the system pid=4