letle 发表于 2013-2-1 12:17:02

PHP运行机制分析(多图)

<span style="font-family: Verdana, Tahoma, sans-serif; font-size: 14px; line-height: 22px;">Introduction
http://koyoz.com/blog/attachments/date_200808/thumb_bfdc6e55947cec148c7c22fe7cb7153c.jpg
Apache
Mime type handler 
 AddType application/x-httpd-php .php
 AddType application/x-httpd-php-source .phps
Server context
 Override php.ini (php_value, php_flag, etc)
 Environment variables(PHP_SELF, etc) 
 Create Child Process/Thread
CLI (command line interface)
CLI  ≈ CGI SAPI
differences
 start up in quiet mode by default 
 plain text error message(no http header)
 implicit_flush always on
 max_execution_time is set to unlimited
 others
Embed
Embed  = Mini CLI

php5embed .lib
example.c 
<div style="" class="codeText"><div style="padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 15px; font-weight: bold; font-size: 12px; background-color: #ffffff; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #dddddd; margin: 0px;" class="codeHead">C++代码
页: [1]
查看完整版本: PHP运行机制分析(多图)