First install Wamp and Navicatmysqlfront (to be in a non-Chinese directory)
Open DW Click Site-New site: Set the site name and select the local site folder: wap\www
Server: Add + server name, connection method: Local/Network, server folder: Select the WWW folder in WAP, Web Url:http://localhost (here change the port to add: 8080 that is the modified port name)
Save complete
What is a site:
Take a website to say
The site of all things together, called the site, which includes a site of all the pages, materials and links between them (link), the site to the server can be used as a website to run, and only the page is not possible
The following is the explanation of Baidu:
Refers to the collection of related Web pages that are used to display specific content on the Internet, using tools such as HTML , according to certain rules. In fact, the site is the site.
1.php becomes the server-side scripting language (weakly typed) HTML is also weak
2.c/s--client Server (client no use) b/S--brower Server (* * * main Web page)
3.LAMP Architecture--linux operating system Apache server PHP MySQL database language
PHP (foreign name: Php:hypertext Preprocessor, Chinese name:" hypertext Preprocessor ") is a common open source scripting language . The syntax absorbs the C language ,Java , and Perl characteristics, conducive to learning, sowith a wide range , mainly applicable to Web OpenThe field of hair. PHP Uniquethe syntax Mixed up C,Java,Perl Toand PHP self-created's syntax. It can bemore than CGI or Perl Fast andline Dynamic Web page . With PHP made the Dynamic pages are associated with other programming languages Than PHP isWill program embeddingTo HTML( Standard Universal Markup Language )In a single application) document to execute, the execution efficiency is better than the complete CGI as HTML markupis much higher; PHP can also beLine compilation After the code, the compilation canachieve encryption and optimization generationCode to run faster.
c/S structure, known as the client and server structure. It is a software system architecture, which can make full use of the advantages of both ends of the hardware environment, the task is reasonably distributed to the client side and server side to achieve, reducing the communication overhead of the system. At present, most of the application software systems are two-layer structure in client/server form, because the current software application system is developing to distributed Web application, both Web and client/server applications can do the same business processing and use different modules to share the logical components; Both internal and external users have access to new and existing applications, and new applications can be extended through the logic of existing applications. This is the current application system development direction.
The basic principle of C/s structure is to decompose the computer application task into many sub-tasks, which is done by multiple computers, that is, the principle of "function distribution" is adopted. The client finishes data processing, data representation and user interface functions, and the server completes the core functions of DBMS (Database management system). This kind of customer requests the service, the server provides the service the processing way is one kind of new computer application pattern. Client and server are often located on two separate computers, the client program's task is to submit the user's requirements to the server program, and then the results returned by the server program are displayed to the user in a specific form The task of the server program is to receive the service request from the client, handle it accordingly, and return the result to the client program.
b/S structure (browser/server, browser/server mode), is the web after the rise of a network structure pattern, web browser is the client's most important application software. This mode unifies the client, and the core part of the system function is centralized to the server, which simplifies the development, maintenance and use of the system. Just install a browser on the client (browser English [' Bra?z?] Beauty [' Bra?z?] ), such as Netscape Navigator or Internet Explorer, the server installs databases such as SQL Server, Oracle, and MySQL. The browser interacts with the database through the Web Server.
Because of the problems of the client/server structure, the structure of the application system structure browser/server (Browser/server) with three-layer mode (3-tier) is proposed on the basis of its original. Browser/server structure is accompanied with the rise of the Internet, an improvement of the client/server structure. In essence, browser/server structure is also a kind of client/server structure, it can be regarded as a special case of the three-layer pattern client/server structure developed from the traditional two-layer pattern client/server structure in the web. The BROWSER/SERVER structure mainly utilizes the technology of Web browser, which combines various scripting languages and ActiveX technology of the browser to realize the powerful functions that need complex special software, and saves the development cost. b/S The biggest advantage is that you can operate anywhere without installing any special software, as long as there is a computer can use the Internet, the client 0 installation, 0 maintenance. The expansion of the system is very easy. b/S structure of the use of more and more, especially by the need to promote the development of AJAX technology, its programs can also be part of the client computer processing, thereby greatly reducing the burden on the server, and increased interactivity, can be local real-time refresh.
First of all, it must be emphasized that the C/s and B + and no essential difference: b/S is based on a specific communication protocol (HTTP) C/S architecture, that is, b/S is included in C/s, is a special C/s architecture The reason why B/s architecture on C/s architecture is to meet the needs of thin client, integrated client, the ultimate goal is to save the cost of client update, maintenance, and wide-area resource sharing. (1) b/S is a C, the browser is only a special client, (2) C/s can use any communication protocol, and B/s This special C/S architecture stipulates that the HTTP protocol must be implemented; (3) The browser is a generic client, essentially developing a browser, or implementing a C/s system. 1. Hardware environment is different: c/S is generally established in a dedicated network, a small range of network environment, LAN and then through a dedicated server to provide connectivity and data exchange services. b/S is built on the WAN, do not need to be dedicated network hardware environment, such as telephone Internet, rental equipment. Information is managed by itself. There are more than C/s to adapt to the range, generally as long as there are operating systems and browsers on the line. 2. The security requirements of different C/s are generally oriented to a relatively fixed user base, the ability to control information security is very strong. Generally highly confidential information system using C/s structure is suitable. Can be published through the B/s part of the public information. b/S is built on the wide area network, the security control ability is relatively weak, may target the unknown user. 3. The program structure of different C/s programs can pay more attention to the process, the authority can be multi-level verification, the system can be less than the speed of operation. b/S multiple considerations for security and access speed are based on the need for more optimization. More than C/s has higher requirements B/s structure of the program architecture is the trend of development, from the MS. NET series of BizTalk Exchange 2000, etc., fully support the network component Building system. SUN and IBM Push javabean component technology and so on, make B/s more mature. 4. Software reuse of different C/s programs can inevitably consider the integrity of the, component reuse is not as good as the reuse of components under B/s requirements. b/S multi-structure, requires a relatively independent component of the function, can be relatively good reuse, such as the purchase of the table can be reused, rather than do the stone table on the wall. 5. system maintenance of different C/s programs due to the integrity, must be integrated inspection, processing problems and system upgrade, upgrade difficult, may be to do a new system. b/S components to facilitate the replacement of individual components, to achieve seamless upgrade of the system . system maintenance overhead is minimized. Users can upgrade by downloading their own installation from the Internet. 6. Processing problems different C/s programs can handle the user face fixed, and in the same area, the security requirements are high, the demand is related to the operating system. That should be all.The same system. b/S is built on the wide area network, facing different user groups, dispersed area, this is the C/s can not be made. Minimal relationship to operating system platform. 7. The user interface is different. c/S is built on the window platform, the performance method is limited, the general requirements of programmers higher. b/S is built on the browser, there is more rich and vivid expression way to communicate with users. And most of the difficulty is reduced, reducing development costs. 8. Information flow different C/s program is typically a centralized mechanical processing, the interaction is relatively low. b/S information flow can change, b-b b-c b-g and other information, flow changes, more like the trading center.
LINUX[2] Operating system is a cloning system of UNIX operating system, it was born in 1991 of the Linux system on October 5 (this is the first time officially announced). With the help of Internet networks and the concerted efforts of computer enthusiasts around the world, it has become the most widely used UNIX class operating system in the world today, and the number of users is growing rapidly.
Linux is a free-to-use and free-to-propagate Unix-like operating system, a POSIX and Unix-based multiuser, multitasking, multi-threaded and multi-CPU operating system. It can run major UNIX tools software, applications, and network protocols. It supports 32-bit and 64-bit hardware. Linux inherits the design idea of Unix as the core of network, and is a stable multi-user network operating system. It is primarily used on computers based on the Intel x86 series CPUs. The system is designed and implemented by thousands of programmers all over the world. The aim is to create UNIX-compatible products that are free to use worldwide, without the copyright restrictions of any commodity-based software.
Linux is known for its efficiency and flexibility, and the modular design of Linux allows it to operate on expensive workstations as well as all UNIX features on inexpensive PCs, with multi-tasking and multi-user capabilities. Linux is obtained free of charge under the GNU Public License and is a POSIX compliant operating system. Linux operating system packages include not only the full Linux operating system, but also the text editor, high-level language compiler and other application software. It also includes a x-windows graphical user interface with multiple window managers, as we do with Windows NT, allowing us to manipulate the system using Windows, icons, and menus.
MySQL is a relational database developed by Swedish MYsql AB, currently owned by Oracle . MySQL's most popular relational database management system, MySQL is one of the best RDBMS (relational database Management system, relational databases management systems) application software in WEB applications. MySQL is an associated database management system that keeps data in separate tables rather than putting all of the data in a large warehouse, which increases speed and increases flexibility. The SQL language used by MySQL is the most commonly used standardized language for accessing databases. MySQL software uses a dual licensing policy (this term "authorization policy"), it is divided into community and commercial version, because of its small size, speed, low total cost of ownership, especially the open source of this feature, the general small and medium-sized web site development has chosen MySQL as the site database. Due to its excellent performance in the Community edition, with PHP, Linux and Apache to form a good development environment, after years of web technology development, in the industry is widely used in one of the Web server Solutions, Called Lamp.
Apache is the world's most used Web server software. It can run on almost all widely used computer platforms and is one of the most popular Web server-side software due to its widespread use across platforms and security. It is fast, reliable, and can be augmented with simple APIs to compile perl/python and other interpreters into the server. Apache, meanwhile, is a tribe of North American Indians called Apache, in the southwestern part of the United States. is also the name of a foundation, an armed helicopter and so on.
Apache Http server (Apache) is an open source Web server of the Apache Software Foundation, which can run in most computer operating systems, and is one of the most popular Web server-side software due to its extensive use of multiple platforms and security. It is fast, reliable, and can be compiled into the server by a simple API extension, such as the Perl/python interpreter. [2] apache HTTP Server is a modular server, originated from the NCSAHTTPD server, after many modifications to become the world's first use of the Web server software. It can run on almost all of the widely used computer platforms. Apache originates from the NCSAHTTPD server and has been modified many times to become one of the most popular Web server software in the world. Apache is taken from the "a patchy server" pronunciation, meaning is full of patches of the server, because it is free software, so constantly someone to develop new features, new features, modify the original flaw. Apache is characterized by simple, fast, stable performance, and can be used as a proxy server. Originally it was used only for small or experimental internet networks, and later gradually expanded to a variety of UNIX systems, especially Linux support is quite perfect. Apache has a variety of products that can support SSL technology and support multiple virtual hosts. Apache is a process-based structure that consumes more system overhead than threads, and is less suited to multiprocessor environments, so when you scale an Apache Web site, you typically increase the server or expand the cluster nodes instead of adding the processor. So far, Apache is still the most used Web server in the world, with a market share of about 60%. Many of the world's most famous sites such as Amazon, Yahoo!, W3 Consortium, Financial Times, etc. are the product of Apache, its success lies mainly in its source code open, there is an open development team, Supports cross-platform applications (which can run on almost all UNIX, Windows, Linux system platforms) and its portability. The birth of Apache is very dramatic. When the NCSAWWW server project stalled, those who used the NCSAWWW server began exchanging patches for the server, and they quickly realized that it was necessary to set up a forum to manage the patches. In this way, the Apache group was born, and later the group created Apache on the basis of NCSA. Apacheweb Server Software has the following features:Apache Server Configuration Interface1. Support the latest http/ 1.1 Communication protocol 2. Has a simple and powerful file-based configuration Process 3. Support for the Universal Gateway Interface 4. Support for IP-based and domain-based virtual hosts 5. HTTP Authentication with multiple modes 6. Integrated Perl processing Module 7. Integrated proxy Server Module 8. Support for real-time monitoring of server status and custom server logs 9. Support Server End-containing directive (SSI) 10. Secure Socket Layer (SSL) 11 is supported. Provides a trace of the user session process 12. Support for FastCGI13. Javaservlets can be supported by third-party modules if you are ready to choose a Web server, Apache is undoubtedly your best choice.
About PHP Basics (how to)