本帖最后由 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文件内容如下:- <?php
- /*
- Filename: smarty_config.php
- Creation Date: 20-04-2010
- Author: M Rogers (www.XXXXX.com)
- Project: ShrinkMe
- */
- /** paths to smarty directorys **/
- $smartypath_template_dir = $_CONFIG['paths']['base'] . '/templates';
- $smartypath_compile_dir = $_CONFIG['paths']['base'] . '/cache/templates';
- $smartypath_cache_dir = $_CONFIG['paths']['base'] . '/cache/templates';
- /** initiate smarty class **/
- require($_CONFIG['paths']['base'] . '/public_html/网址/includes/smarty/Smarty.class.php');
- $smarty = new Smarty();
- /** assign smarty directory paths **/
- $smarty->template_dir = $smartypath_template_dir;
- $smarty->compile_dir = $smartypath_compile_dir;
- $smarty->cache_dir = $smartypath_cache_dir;
- $smarty->config_dir = $smartypath_config_dir;
- ?>
复制代码 |