Analysis of include folder in php android include include html include stdio.h

WBOY
Release: 2016-07-29 08:55:22
Original
1306 people have browsed it

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';
Copy after login

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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!