标签: php include include-path
包含PHP函数的远程绝对URL的最佳方法是什么,只要在PHP服务器上以下列方式配置相关变量?
allow_url_fopen = off allow_url_include = off
一般情况下,我们会包含相对网址,
<?php include('./directory/file.php'); ?>
和绝对网址远程一样,
<?php include('http://site.com/directory/file.php'); ?>