forked from walu/phpbook
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/wenjun1055/phpbook
Conflicts: 1.2.md 1.3.md 1.4.md 2.1.md 2.3.md 2.md 3.1.md merge with walu and complete chapter three
- Loading branch information
Showing
68 changed files
with
360 additions
and
518 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,3 @@ | |
* 上一节: [PHP的生命周期](<1.md>) | ||
* 下一节: [PHP的启动与终止](<1.2.md>) | ||
|
||
## LastModified | ||
* $Id$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,3 @@ | |
* 上一节: [线程安全](<1.4.md>) | ||
* 下一节: [PHP变量在内核中的实现](<2.md>) | ||
|
||
## LastModified | ||
* $Id$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
# 1 PHP的生命周期 | ||
|
||
## 目录 | ||
* 1. [让我们从SAPI开始](1.1.html) | ||
* 2. [PHP的启动与终止](1.2.html) | ||
* 3. [PHP的生命周期](1.3.html) | ||
* 4. [线程安全](1.4.html) | ||
* 5. [小结](1.5.html) | ||
* 1. [让我们从SAPI开始](1.1.md) | ||
* 2. [PHP的启动与终止](1.2.md) | ||
* 3. [PHP的生命周期](1.3.md) | ||
* 4. [线程安全](1.4.md) | ||
* 5. [小结](1.5.md) | ||
|
||
在平常的Web环境中,我们并不需要单独启动PHP,它一般都会作为一个模块自动加载到web-server里面去,如apache加载的php5.so。只要我们启动了web-server,被一起加载的php便会和服务器一起解析被请求的php脚本。 | ||
|
||
当然,这不是绝对的,当我们以fastcgi模式安装php的时候,往往就需要手动在终端运行php -b 127.0.0.1:9999来启动php,这个命令只是个例子,可能你的和我的并不一样。没记错的话,我的应该是我在fedora15上配置nginx+php时的一条命令。 | ||
|
||
## links | ||
* [目录](<preface.md>) | ||
* 下一节: [让我们从SAPI开始](<1.1.md>) | ||
|
||
## LastModified | ||
* $Id$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,5 +34,3 @@ $obj = new myclass(); | |
* 10 [PHP中的面向对象(一)](<10.md>) | ||
* 10.2 [定义一个类](<10.2.md>) | ||
|
||
## LastModified | ||
* $Id$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,5 +52,3 @@ $obj->hello(); | |
* 10.2 [定义一个类](<10.2.md>) | ||
* 10.4 [继承与实现接口](<10.4.md>) | ||
|
||
## LastModified | ||
* $Id$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,3 @@ | |
* 10.4 [继承与实现接口](<10.4.md>) | ||
* 11 [PHP中的面向对象(二)](<11.md>) | ||
|
||
## LastModified | ||
* $Id$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
# 10 PHP中的面向对象(一) | ||
|
||
<ul class="catalog"> | ||
<li> [1. zend_class_entry](ch10.1.html) </li> | ||
<li> [2. 定义一个类](ch10.2.html) </li> | ||
<li> [3. 定义一个接口](ch10.3.html) </li> | ||
<li> [4. 类的继承与接口的实现](ch10.4.html) </li> | ||
<li> [5. 小结](ch10.5.html) </li> | ||
</ul> | ||
* [1. zend_class_entry](10.1.md) | ||
* [2. 定义一个类](10.2.md) | ||
* [3. 定义一个接口](10.3.md) | ||
* [4. 类的继承与接口的实现](10.4.md) | ||
* [5. 小结](10.5.md) | ||
|
||
面向对象的概念这里就不再叙述了。原书中把这一部分的知识分开到PHP4和PHP5中来讲的,这里我做了大幅的调整,几乎是进行了重写。前一部分主要介绍了如何定义类、接口等一些声明类的操作。后一部分主要介绍了对象的使用等一些对实例的操作。 | ||
|
||
|
||
## links | ||
* 9.4 [第九章小结](<9.4.md>) | ||
* 10.1 [zend_class_entry](<10.1.md>) | ||
|
||
## LastModified | ||
* $Id$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,5 +98,3 @@ ZEND_MINIT_FUNCTION(test) | |
* 11 [PHP中的面向对象(二)](<11.md>) | ||
* 11.2 [读写对象的属性](<11.2.md>) | ||
## LastModified | ||
* $Id$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,3 @@ | |
* 11.2 [读写对象的属性](<11.2.md>) | ||
* 0 []() | ||
|
||
## LastModified | ||
* $Id$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,5 +83,3 @@ PHP_MINFO_FUNCTION(sample4) { | |
* 12.1 [关于生命周期](<12.1.md>) | ||
* 12.3 [常量](<12.1.md>) | ||
## LastModified | ||
* $Id$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,5 +84,3 @@ PHP_RINIT_FUNCTION(sample4) { | |
* 12.4 [PHP扩展中的全局变量](<12.4.md>) | ||
* 12.6 [小结](<12.6.md>) | ||
## LastModified | ||
* $Id$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,3 @@ | |
* 12.5 [PHP语言中的超级全局变量](<12.5.md>) | ||
* 13.md [设置INI](<13.md>) | ||
|
||
## LastModified | ||
* $Id$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,3 @@ | |
* 11.3 [小结](<11.3.md>) | ||
* 12.1 [关于生命周期](<12.1.md>) | ||
|
||
## LastModified | ||
* $Id$ |
Oops, something went wrong.