Home > Article > Backend Development > Analysis of include folder in php android include include html include stdio.h
include is a summary that contains many php files; it is usually placed at the outermost level of the folder.
<?<span>php </span><span>header</span>("content-type:text/html;charset=utf-8");<span>//</span><span>设置字符</span>date_default_timezone_set("PRC");<span>//</span><span>设置时间区域为中国</span><span>session_start</span>();<span>//</span><span>全局开启session</span><span>define</span>("ROOT",<span>dirname</span>(<span>__FILE__</span>));<span>//</span><span>__FILE__是当前文件的绝对完整路径;dirname()获取返回当前文件路径的 绝对路径部分</span><span>set_include_path</span>(".".PATH_SEPARATOR.ROOT."/lib".PATH_SEPARATOR.ROOT."/core".PATH_SEPARATOR.ROOT."/configs".PATH_SEPARATOR.<span>get_include_path</span><span>()); </span><span>//</span><span>set_include_path()是设置包含文件的路径</span><span>require_once</span> 'mysql.func.php'<span>; </span><span>require_once</span> 'image.func.php';
The above introduces the analysis of the include folder in PHP, including the include content. I hope it will be helpful to friends who are interested in PHP tutorials.