Home > Backend Development > PHP Tutorial > php require_once

php require_once

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-23 14:37:25
Original
1333 people have browsed it

只有在同目录下的php文件,可用require_once("filename.php");

在不同目录下的php文件,用相对所在目录的路径

require_once('./php/data_fns.php'); 

require_once('../data_fns.php'); 

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
Latest Issues
PHP 7.2 How to reference files?
From 1970-01-01 08:00:00
0
0
0
php calling problem
From 1970-01-01 08:00:00
0
0
0
PHP fatal error cannot open required file
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template