本帖最後由 angel 於 2011-1-24 18:09 編輯 6 [& Q6 v7 G! O. a. l3 V; Q; }
* K3 D9 L" c6 K
請問這段代碼哪裡出錯了,打開主頁提示! f0 ^9 m" ]3 @; I# J
' D( `6 X: ?6 t8 O, T0 W+ i2 DParse error: syntax error, unexpected T_VARIABLE in /home/oneabc/public_html/網址/includes/configs/smarty_config.php on line 1
- f+ U2 C; Q3 Z3 h- ]1 d1 w$ ?0 Q. B; W) n
smarty_config.php文件內容如下:- <?php8 [( i* `+ ~# Z7 M1 r0 f+ Q
& b% M8 R% s% w6 {' t- ; Z) y: g$ V ?+ M( p# i
- /*3 o' G/ L* d/ N
- Filename: smarty_config.php
* e! z5 n6 D2 X+ g - Creation Date: 20-04-2010 8 ?" C! ~! \$ I+ U6 q- M0 | y
- Author: M Rogers (www.XXXXX.com)) V0 n3 q6 V* z+ n
- Project: ShrinkMe
5 C9 ~4 K( ^0 M+ F - */
5 [% q9 @/ w4 ?, h- z$ o - 7 Q* a3 x2 M$ X8 M
- 3 ~3 e( {1 w. ~) d8 k5 D
- /** paths to smarty directorys **/% V, v. K8 T7 O, D
- $smartypath_template_dir = $_CONFIG['paths']['base'] . '/templates';, _) p5 C4 }7 c! N( U9 ^
- $smartypath_compile_dir = $_CONFIG['paths']['base'] . '/cache/templates';
- V6 y/ c8 q+ F. B3 u5 P - $smartypath_cache_dir = $_CONFIG['paths']['base'] . '/cache/templates';
. O* y0 X: S; E0 F - $ V) |2 @. ^, l1 s
- /** initiate smarty class **/
1 T: N/ t% D( R0 m7 c2 K - require($_CONFIG['paths']['base'] . '/public_html/網址/includes/smarty/Smarty.class.php');' H" Y3 m" [( q H
- $smarty = new Smarty();
4 z: w- t8 E* |! G9 w
$ p( l' w0 X# j) _% I) @- /** assign smarty directory paths **/% x# _! C/ U& B1 K. R! r
- $smarty->template_dir = $smartypath_template_dir;
+ T% b- o1 i8 F" L+ j, F8 \2 \' ] - $smarty->compile_dir = $smartypath_compile_dir;9 u" Y$ S4 W5 d: B0 }
- $smarty->cache_dir = $smartypath_cache_dir;4 r4 n2 A) r" q" ~0 f
- $smarty->config_dir = $smartypath_config_dir;
8 y- _% o, Z1 G! I- o, K' u; O
; l; N5 s/ b( e4 f2 c0 U- j- ?>
複製代碼 |