PHP源码解析(一)
PHP源代码分析
当前版本PHP5.3.1
目录结构
build 和编译有关的目录。
ext 扩展库代码,例如 Mysql、zlib、iconv 等我们熟悉的扩展库。
main 主目录。
netware
pear
sapi 和各种服务器的接口调用,例如apache、IIS等,也包含一般的fastcgi、cgi等。
scripts Linux 下的脚本目录。
tests 测试脚本目录
TSRM
win32 和 Windows 下编译 PHP 有关的脚本。
Zend 文件夹核心的引擎。
相关文档:
<?php
$fileName="function.js";
$file=fopen($fileName,"r");
$writeStr="";
$flag=false;//判断是否有/***/标准
while($strLine=fgets($file))
{
if(stripos($strLine,"/*")===false || stripos($strLine,"/**")===false)
{
&nbs ......
此文章的安装方法适用于Windows XP
下的Apache+PHP+MySQL
安装,同时也适用于Windows 2003
系统下的安装和配置。
1.
安装环境
操作系统是 Windows XP
中文版, Apache,
PHP, MySQL
的最新版本是截止到 2007.09.07
,分别在其官网下载的:
* Apache 2.2.6
:http://apache.mirror.phpchina.c ......
Perl is a language often associated with text processing and CGI. PHP is
a language often associated with dynamic Web pages. Both are very popular
with Web developers. Often, each of these languages is used at the expense of
the other. Hard-core Perl developers would love to develop everyth ......
本范例只能在windows平台下正确运行。编辑器是可以在windows或linux下运行,与平台无关。
配置步骤:
1)webnoteeditor_phpsample文件夹放到网站的目录"webnoteeditor_phpsample"下
2)doc文件夹放到网站目录"doc"下
3)通过 http://localhost/webnoteeditor_phpsample/index.php 来访问
在Windows下,建议使用EasyPHP来 ......