Brief introductionLet's take a look at the following procedure:
We have never manually opened the relevant process of PHP, it is running with Apache boot;
PHP is connected to Apache via the Mod_php5.so module (specifically, SAPI, the
Create a Web server (LAMP):# Optimization by OnekeySed-i ' s#selinux=enforcing#selinux=disabled# '/etc/selinux/configgrep selinux=disabled/etc/selinux/configSetenforce 0Getenforce/etc/init.d/iptables stop/etc/init.d/iptables stopChkconfig iptables
Loop structureone, while Loopwhile (expression){The loop body;//executes repeatedly until the expression is false}Code:$index = 1;while ($index {Print "number is {$index}";$index + +;}print "Done";Operation Result:Number is 1Number is 2Number is
Category: Php nature 2011-11-15 15:55 2840 people read reviews (0) favorite reports PHP work ApacheextensionzendvariablesDirectory (?) [+]Brief introductionLet's take a look at the following procedure:
We have never manually opened the
PHP bottom of the operating mechanism and data structure principle 1. Design concept and features of PHP
Multi-process Model: Because PHP is a multi-process model, different requests between non-interference, so that a request to ensure
Server {Listen80; server_name www. funsion.com; Root/www/web/funsion; Index index.PHP; #disable access to PHP files in the app directoryLocation ~* ^/application/.+\.php$ {#The . HTML in this directory is allowed to be accessed because the static
PHP is simple, but mastering is not an easy thing to do. We have to know how it works in addition to using it.PHP is a dynamic language for web development. Specifically, it is a software framework that implements a large number of components in the
Recently received a program to do a teacher's project, doing PHP research and ancillary project development. Previously, no contact with PHP, here to do an understanding to get started.
1, PHP
PHP, hypertext preprocessor, hypertext preprocessor, a
Problem One: PHP Run Error: 1% is not a valid Win32 application
PHP environment after the configuration, run HTML success, but run PHP error, errors are "1% is not a valid Win32 application", English report%1 is not a valid Win32 Application. For
50 of High-quality PHP code practical skills, I hope you like.
1. Do not use relative pathsyou will often see:
Require_once ('.. /.. /lib/some_class.php ');
This approach has many drawbacks: it first finds the specified PHP include
1. Do not use relative pathsYou will often see:
Require_once ('.. /.. /lib/some_class.php ');
There are many drawbacks to this approach:
It first finds the specified PHP include path, and then finds the current directory.
Therefore, too many paths
This article is the first of a series, and some other topics currently in mind are:
SQL injection Issues
Event model
AOP model
Implementation of the UI framework
Template mechanism
PHP Meditation Record
Working model
The working model
PHP can be successfully run on the Apache server, it depends on how we configure the way PHP runs.
There are three main ways PHP runs so far:
A, the module loading mode of operation, beginners may not be easy to understand, in fact, is to
The 2007 Phpchina Weekend theme Forum was successfully concluded with the support of many enthusiasts who love PHP and open source, and the theme of the event is "open source PHP and personal development". We were fortunate enough to have the
Program
As the portal moves towards maturity, its structure and function have changed a lot, from the blending service to the system framework, the application is completely separated from the deployment and development, the portal is quite similar
PHP Development Framework YII Framework Tutorial (1) First Application Hello World
PHP Development Framework YII Framework Tutorial (2) YII Web Application Foundation
PHP Development Framework YII Framework Tutorial (3) Add log for application
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.