Development environment Construction and corresponding file configuration for PHP development

Source: Internet
Author: User
Tags php language php development environment what php
The notes that you have made during the course of your study.

What PHP can be used to do

Web pages can be programmed with JavaScript. But JavaScript is limited in its capabilities, and JavaScript is usually run in the browser (client), which can make the effects on the Web page: the mouse over the background to change the color, as well as the common mouse over the page pop-up menu. But if you want the JavaScript implementation to display the total number of visitors to the site, it is powerless because it can only get information from the client, and the total number of visitors to the site is stored on the server side. So you need another programming language that can run on the server side, and the PHP language is one of them because it can run on the Web server side. So the characteristics of PHP can be summed up as:

1, running on the server side; Most of the data on the Web site is stored on the server side, and PHP is used to process the data stored on the server.

2, cross-platform; servers can be servers of multiple platforms, such as Linux, Windows, Unix. This can improve the efficiency of programming.

3, scripting language; PHP is run by scripting, which is a line of computer instructions, and no other script.

4, free trial.

Second, Wampserver integrated environment download and installation

w--windows;a--apache;m--mysql;p--php. Because they are often put together for trial in development, they are packaged into wampserver, an integrated development package-a powerful web development platform.

Download: www.wampserver.com; switch to English in the upper right corner to enter the download interface to select your own operating system:

Choose your favorite installation directory. Follow the prompts to complete the installation.

When the green icon appears in the lower-right corner of the screen:

Check whether the installation is successful, you can enter localhost in the browser and choose Enter, if the following interface appears to be done!

Third, the use of getting Started

Right-click the green icon to select a language.

Click the icon that displays the phpMyAdmin for the Visual Database management tool.

www is the root directory for storing Web page files.

MySQL console on MySQL, in the popup window input wamp default password that is enter the database can be processed data.

Four, the installation of Wamp service but can not start

Possible cause, Apache port is occupied. Modify the port number that is not occupied, and modify the default ports steps as follows:

Click the icon to open the httpd.conf configuration file under Apache, ctrl+f enter 80 to return the car, modify listener 80 (change to 8080); continue to find Next: ServerName Localhost:80;ctrl+s can be modified, Then restart the service. Since the default port has been modified, the page visited thereafter is no longer localhost/test.php; and needs to be localhost8080/test.php;

V. Changes to the Web root directory

As mentioned above, www is the root directory of the Web files, only in www can be accessed by the server, but not everyone wants to put in a file, then you need to modify some configuration files. 1. Click the green icon to open apache>httpd.conf Open after using the shortcut key ctrl+f input DocumentRoot find the file address in the configuration file, which is the folder you want to use to store the Web page file. Need to modify two places: and . Then Ctrl+s save, then click the icon to select Restart Service. Changes to the configuration file require a service restart to take effect.

Next is the test

Create a new. php file under your own set of files. such as test.php in the browser URL enter localhost/test.php carriage return. The output statement is successful. However, the Open icon panel in the WWW directory is still unable to enter their own folder, there is a need to modify the corresponding configuration file. Open the Wamp folder and locate the Wampmanager.ini and WAMPMANAGER.TPL files. Open the Wampmanager.ini file ctrl+f input menu.left change the Wamp directory line to the file path you want. Open the Wampmanager.tpl file ctrl+f input Menu.left modify the following line:

Modified to:



Then restart the service. Then open the WWW directory will become the demo directory, open will go to your file location.

Ash Azusa

2015 4 15

    • Size: 13.5 KB
    • Size: 166.7 KB
    • Size: KB
    • Size: 25.7 KB
    • Size: 13.2 KB
    • View Picture Attachments

The above introduces the development of PHP development environment building and the corresponding file configuration, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.