0

我正在尝试在我的索引页面中包含一个文件以显示链接。由于它将在整个站点中保持不变,我想我会将链接作为一个单独的文件进行处理,并通过插入将它们包含在整个站点中,我@include('includes/site_links.txt')在收到错误时尝试使用 .php 扩展名,但我仍然得到它。我得到的错误是:Value too large for defined data type in /home/www/DOMAIN_NAME/templates/SITE_NAME/index.php on line 30

我拥有<?php @includes('images/includes/site_links/links.php'); ?>的是我在第 30 行所拥有的,在该文件中是应该在网站上的链接的 html。它只包含纯 html 和一点 php。

php 4 和 php 5 与包含相关的 PHP 行为有什么不同吗?我的本地主机上有 PHP 5.3.2,服务器上有 4.4.9,这可能是个问题吗?

4

0 回答 0