【发布时间】:2013-12-13 21:18:51
【问题描述】:
我使用的是 php 5.4 版本。将我的 Joomla cms 文件夹从本地主机上传到我的虚拟主机后,我遇到了问题。
这是代码
<?php
defined('_JEXEC') or die;
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
// Create shortcuts to some parameters.
$params = $this->item->params;
$images = json_decode($this->item->images);
$urls = json_decode($this->item->urls);
$canEdit = $params->get('access-edit');
$user = JFactory::getUser();
$info = $params->get('info_block_position', 0);
JHtml::_('behavior.caption');
$useDefList = ($params->get('show_modify_date') || $params->get('show_publish_date') || $params->get('show_create_date')
|| $params->get('show_hits') || $params->get('show_category') || $params- >get('show_parent_category') || $params->get('show_author'));
?>
我收到这个错误
解析错误:语法错误,第 1 行 /home/u854215895/public_html/templates/realestate/html/com_content/article/default.php 中的意外“定义”(T_STRING)
请帮忙...谢谢
【问题讨论】:
-
你在 Windows 上吗?如果是这样,请确保您的文件具有 unix 结束行字符
\n而不是 windows\r\n。
标签: php