Include and Require
2016-02-18 12:47
411 查看
The include or require statement takes all the text/codde/markup that exists in the specified file and copies it into the file that uses the include statement.
The include and require statements are identical, except upon failture:
require will produce a fatal error and stop the script
include will only produces a warning and the script will continue
So if you want the execution to go on and show users the output, even if the include file is missing, use the include statement.Otherwise, in case of Framework or a complex PHP application coding, always use the require statement to include a key file to the flow of exectution.This will help you avoid compromising your application's security and integrity, just in-case one key file is accidentally missing.
include/require 'filename'
The include and require statements are identical, except upon failture:
require will produce a fatal error and stop the script
include will only produces a warning and the script will continue
So if you want the execution to go on and show users the output, even if the include file is missing, use the include statement.Otherwise, in case of Framework or a complex PHP application coding, always use the require statement to include a key file to the flow of exectution.This will help you avoid compromising your application's security and integrity, just in-case one key file is accidentally missing.
include/require 'filename'
相关文章推荐
- UIImagePickerController(相册的使用)
- HUST 1358 Uiwurerirexb jeqvad
- UITableView显示不全
- CoreBluetooth - TouchID应用
- UITableView备忘
- Storing Multiple Values in a Map--by Tim O'Brien 整理by博主
- Jmeter以non-gui模式进行分布式测试
- 微信网页设计样式库WeUI
- UISearchController
- 红外感应器+arduino+processing+flash 实现麦克风吹波波效果
- request.getSession(false);中的false是什么意思
- 侧滑手势与UIScrollView滚动手势冲突解决
- 系统UITabbarController
- UITabBarController + UINavigationController 框架相关问题(隐藏TabBar)
- The project was not built since its build path is incomplete
- Android UI开发: 横向ListView(HorizontalListView)及一个简单相册的完整实现 (附源码下载)
- 如何使用Liquibase
- UIPickerView的简单使用
- SystemUI中的访客模式整理
- 监听到UITextField的文本文字改变的3种方法