|
1:打开php.ini文件 设置 include_path= "c:"
2:写两个文件 auto_prepend_file.php 和 auto_append_file.php 保存在c盘,他们将自动依附在每个php文件的头部和尾部.
3:在php.ini中找到: Automatically add files before or after any PHP document. auto_prepend_file = auto_prepend_file.php;依附在头部 auto_append_file = auto_append_file.php;依附在尾部
以后你每个php文件就相当于
PHP代码:
<?php Include "auto_prepend_file.php" ;
.......//这里是你的程序
Include "auto_append_file.php"; ?>
|
|
文章编号
|
268
|
|
创建日期
|
11-24-2007
|
|
发布人
|
laohan
|
|
点评
|
(None)
|
|