本帖最後由 angel 於 2011-1-24 18:09 編輯
$ r* N0 j: U$ @( K, ?# S3 ~; x; \4 @$ R$ J2 }- r, S5 I
請問這段代碼哪裡出錯了,打開主頁提示# w% l$ y) d$ g+ j, H( h( l
' {% p# M" z, B; |Parse error: syntax error, unexpected T_VARIABLE in /home/oneabc/public_html/網址/includes/configs/smarty_config.php on line 1
+ ~+ a2 H. T* j& C3 K# H5 p& J* U( Q# V7 t# b) c7 Y, h8 F8 Q
smarty_config.php文件內容如下:- <?php: g9 _8 L- r4 E# F3 I7 p( v
- 9 U1 ^+ o0 m& V }
- 4 h, s x: `& B. b& ]( x
- /*
/ o* {7 i( [) `0 }9 \) L; W - Filename: smarty_config.php
# s- ]" E3 @4 L) v# [ X7 I2 C - Creation Date: 20-04-2010 ) O* J9 @% r# z
- Author: M Rogers (www.XXXXX.com)
2 n; J6 v( ^& U- l% } - Project: ShrinkMe2 [" X! ~/ ~3 { r
- */* N n9 l: J$ R, e; g8 ^
6 ]( w; W2 u2 R5 N& ?+ h, b- % o" c; k: y0 {( Q
- /** paths to smarty directorys **/
* s" n {9 o( y! d8 { - $smartypath_template_dir = $_CONFIG['paths']['base'] . '/templates';$ m8 G8 { a7 W" [: m- u
- $smartypath_compile_dir = $_CONFIG['paths']['base'] . '/cache/templates';
0 q2 n9 W. S) S- B% ]5 T- \' U - $smartypath_cache_dir = $_CONFIG['paths']['base'] . '/cache/templates';
) S0 |* K2 o; j3 J) |: U. b! w% R - 6 L2 D4 o/ r. L( {
- /** initiate smarty class **/8 o9 `. A$ q+ X1 J
- require($_CONFIG['paths']['base'] . '/public_html/網址/includes/smarty/Smarty.class.php');5 l7 `' D' [; T6 M2 `7 C o
- $smarty = new Smarty();* c0 b7 ~4 M8 S( p/ Q z. K
- ! G5 @' T% e5 J
- /** assign smarty directory paths **/
% J, }* I) q! u5 t: W - $smarty->template_dir = $smartypath_template_dir;* b- Q% F- X5 P
- $smarty->compile_dir = $smartypath_compile_dir;
0 S' m8 r9 E$ w5 \9 K6 b4 x$ a) v - $smarty->cache_dir = $smartypath_cache_dir;
# Z) i4 t9 I+ H; V; Z2 Z! Y - $smarty->config_dir = $smartypath_config_dir;# o2 C5 [5 O9 d2 H+ y
- 7 W) E3 A) j7 K0 l& O
- ?>
複製代碼 |