摘要:
01父类抽象类 abstract.php <?phpabstract class controller_abstract{ protected $app; function __construct(& $app){ $this->app = $app;} public function exec() 阅读全文
摘要:
访问: www.test.com/admin 1 后台目录:admin (确保单一入口) --有入口文件index.php <?phprequire '../A/a.php'; //导入主程序function mylog2($word){$file = './mylog2.txt';file_put 阅读全文
摘要:
进入编辑php文件vim index.php(无则新建) -->进入命令行模式--输入a(append)-->进入编辑模式-->编辑好-->esc退出编辑模式-->:q!冒号强制退出不保存-->:w 保存不退出.看效果-->:wq!写入保存退出 清空mylog1.txt 01 shift+G 转到文 阅读全文
摘要:
查找目录文件 whereis xxx 编辑文件,并且查找指定代码的位置 01 vi appcontroller.class.php 02 :分号进入命令行模式, /斜杠 查找 status 回车 n下一个单词 ls -a list all 查看所有文件(包括隐藏文件 如.bash)pwd 当前位置 阅读全文