更新时间:2023-01-03 18:29:14
从数组中删除$ src变量:
Remove $src variable from an array:
<?php
$options = array(
'files' => array('/srv/home/xyz/public_html/test1.js',
'/srv/home/xyz/public_html/test2.js'),
'maxAge' => 86400
);
?>
array('/srv/home/xyz/public_html/test1.js') // this path is absolute physical path
array('//test1.js') // this path is a relative path from document root of the web-server
因为你应该插入HTTP请求将您的脚本链接到html文件:
HTTP Request is there because you should insert a link to your script into html-file:
<script type="text/javascript" src="/js/script.js.php" ></script>
如果其中一个包含的文件不存在,服务器必须发送404响应(未找到)
If one of the included file will be not exists, server must send 404-response (NOT FOUND)