1、安装Lamp,启动,右下角软件图标颜色一定要是绿色的(所有服务开启)
2、把PHP文件上传到安装目录下的>>1定义单入口文件(indexphp)
单入口indexphp定义两项编译缓存文件~runtimephp
define('RUNTIME_PATH','/App/Temp/'); //定义编译目录
define('APP_DEBUG',TRUE); //启调试模式
述两行能indexphp作用则indexphp变
<php
define('APP_NAME','App'); //项目名称
define('APP_PATH','/App/'); //项目路径
include '/ThinkPHP/ThinkPHPphp'; //引入ThinkPHP核运行文件
>
2编译缓存文件(~runtimephp)
3复制~runtimephp全部内容indexphp运行效前
~runtimephp缓存编译内容相于indexphp引导所 *** 作全部集~runtimephp文件
缓存编译文件indexphp运行再引导直接检测否存~runtimephp编译缓存文件则直接运行~runtimephp
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)