EEfaq论坛-赚客自留地

 找回密码
 免费注册
查看: 1566|回复: 7

请问这段代码哪里出错了

[复制链接]
发表于 2011-1-24 17:53:18 | 显示全部楼层 |阅读模式
本帖最后由 angel 于 2011-1-24 18:09 编辑

请问这段代码哪里出错了,打开主页提示

Parse error: syntax error, unexpected T_VARIABLE in /home/oneabc/public_html/网址/includes/configs/smarty_config.php on line 1


smarty_config.php文件内容如下:
  1. <?php


  2. /*
  3.       Filename:  smarty_config.php
  4.           Creation   Date: 20-04-2010          
  5.           Author:    M Rogers (www.XXXXX.com)
  6.           Project:   ShrinkMe
  7. */


  8. /** paths to smarty directorys **/
  9. $smartypath_template_dir = $_CONFIG['paths']['base'] . '/templates';
  10. $smartypath_compile_dir = $_CONFIG['paths']['base'] . '/cache/templates';
  11. $smartypath_cache_dir = $_CONFIG['paths']['base'] . '/cache/templates';

  12. /** initiate smarty class **/
  13. require($_CONFIG['paths']['base'] . '/public_html/网址/includes/smarty/Smarty.class.php');
  14. $smarty = new Smarty();

  15. /** assign smarty directory paths **/
  16. $smarty->template_dir = $smartypath_template_dir;
  17. $smarty->compile_dir = $smartypath_compile_dir;
  18. $smarty->cache_dir = $smartypath_cache_dir;
  19. $smarty->config_dir = $smartypath_config_dir;

  20. ?>
复制代码
发表于 2011-1-24 18:10:51 | 显示全部楼层
网址?这是被替换了还是就是俩汉字 网址可以带汉字么?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-1-24 18:11:22 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2011-1-24 18:22:08 | 显示全部楼层
PHP不通 等待高手 解决 提示语法错误,意外变量错误吧

T_VARIABLE是个变量呢还是个提示,没找到这个变量
回复 支持 反对

使用道具 举报

发表于 2011-1-24 22:02:32 | 显示全部楼层
模板????
回复 支持 反对

使用道具 举报

发表于 2011-1-25 17:10:34 | 显示全部楼层
是哪个变量没定义吧
回复 支持 反对

使用道具 举报

发表于 2011-1-25 22:51:40 | 显示全部楼层
看不出来。
回复 支持 反对

使用道具 举报

发表于 2011-3-4 19:28:24 | 显示全部楼层
这个肯定是符号的问题啊
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

QQ|联系我们|Archiver|手机版|小黑屋|EEfaq论坛

GMT+8, 2024-5-17 13:38

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表