PHP运行机制分析(多图)
<span style="font-family: Verdana, Tahoma, sans-serif; font-size: 14px; line-height: 22px;">Introductionhttp://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]