[英]How to require PHPTAL.php
How do I require PHPTAL.php
that I added to my buildpath (PHP Include path folder)? 我如何需要添加到
PHPTAL.php
(PHP包含路径文件夹)中的PHPTAL.php
?
It would do with either an absolute or relative path. 它将使用绝对路径或相对路径。
If the file is in one of the folders in your include_path
: 如果该文件位于
include_path
中的文件夹之一中:
require('PHPTAL.php');
Otherwise simply specify the relative or absolute path to the file (if you use a relative one it must be relative to the path of the PHP script that was initially called by the HTTP request): 否则,只需指定文件的相对或绝对路径即可(如果使用相对路径,则必须相对于HTTP请求最初调用的PHP脚本的路径):
require('/path/to/PHPTAL.php');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.