require_once、define在windows和linux下用法区别
来源:互联网 发布:淘宝卖毛衣好的店 编辑:程序博客网 时间:2024/06/07 02:17
require_once('../../config.php')、define(DB_USER, 'root')语句在linux下很正常,结果移到Windows下发现报错,网上找了半天也没解决,后来才发现require_once在Windows下不需要括号,空格即可,define的定义字符串要加引号
Linux:require_once('../../config.php');
define(DB_USER, 'root');
Windows:require_once '../../config.php';
define('DB_USER', 'root');
- require_once、define在windows和linux下用法区别
- #define用法以及#define和typedef区别
- #define用法以及#define和typedef区别
- #define用法以及#define和typedef区别
- #define用法以及#define和typedef区别
- socket在windows下和linux下的区别
- socket在windows下和linux下的区别
- socket在windows下和linux下的区别
- socket在windows下和linux下的区别
- socket在windows下和linux下的区别
- socket在windows下和linux下的区别
- socket在windows下和linux下的区别
- socket在windows下和linux下的区别
- PHP require.include.require_once.include_once的用法和区别
- php中include,include_once和require,require_once的用法区别
- 回车和换行在windows和linux下的区别
- template模板在Windows和Linux下的不同用法
- 在linux和windows下做c语言的区别
- HDU 2111 saving hdu
- 排序 - 归并排序 [1]
- HDU 4619 Warm up 2
- sqlite3加密
- 感谢 摄像机标定opencv
- require_once、define在windows和linux下用法区别
- 开始写博客了
- JSON风格指南
- SQLite从Excel文件中导入数据
- java实训第七次课后笔记——继承、多态
- cocos2d-x+cocosbuilder 学习笔记 (三)
- HDU 2187 悼念512汶川大地震遇难同胞——老人是真饿了
- java 设计模式有趣见解
- NSAutoreleasePool