本帖最後由 angel 於 2011-1-24 18:09 編輯
% I) _0 s8 z# q+ `3 y& c
1 _: q8 M/ J0 k% l請問這段代碼哪裡出錯了,打開主頁提示5 C9 Q; @0 O3 ^+ D" g
& h4 K" Z/ m) M3 z! t
Parse error: syntax error, unexpected T_VARIABLE in /home/oneabc/public_html/網址/includes/configs/smarty_config.php on line 1 " s* h) b( n# d) I1 o
4 I P: H% V8 }2 i. S/ Gsmarty_config.php文件內容如下:- <?php
/ k/ F! `9 n0 V" b6 J
) _2 r' g6 Y, z! e1 F$ b) A3 q# Q) W
8 B; w& i+ N& z) D |- /*
8 ]9 t7 u* h9 G5 J8 R& j& ? - Filename: smarty_config.php
! o5 j" C2 r0 Q, Y# X* z7 c - Creation Date: 20-04-2010 ! X( Q0 h$ r7 w/ m
- Author: M Rogers (www.XXXXX.com)3 F- s9 R, q) M$ \
- Project: ShrinkMe) W( ]1 H. q* v0 a8 a* v1 C
- */
1 V# {* a2 _, p2 A5 W - 9 R9 F$ `2 b* q" H& }
/ E! q/ Z5 f4 S [- /** paths to smarty directorys **/
; R b1 b3 q( C. _7 Z - $smartypath_template_dir = $_CONFIG['paths']['base'] . '/templates';' x9 v, r7 Y0 o; s% g7 `
- $smartypath_compile_dir = $_CONFIG['paths']['base'] . '/cache/templates';
8 D9 Y: _' d+ m: ]% [4 m7 f - $smartypath_cache_dir = $_CONFIG['paths']['base'] . '/cache/templates';* {) l% X# m/ U* `
- / ] ?6 V0 J& B P: Z
- /** initiate smarty class **/2 j8 a; G0 d2 |
- require($_CONFIG['paths']['base'] . '/public_html/網址/includes/smarty/Smarty.class.php');
4 B' a$ U) ?7 c - $smarty = new Smarty();
! {, i8 C) v( \3 u0 j$ R8 `
! y1 ~& G4 j$ I1 ?; G, A+ }- /** assign smarty directory paths **/
) V8 ~2 D; B& E2 Z- i* Z2 Q- Z- { - $smarty->template_dir = $smartypath_template_dir;
- u6 e! p7 ~3 ]0 V% }+ L - $smarty->compile_dir = $smartypath_compile_dir;8 S; U2 \8 l5 U. W3 c
- $smarty->cache_dir = $smartypath_cache_dir;% _$ a- T W+ k2 x
- $smarty->config_dir = $smartypath_config_dir;
4 q3 A2 D9 Z, _! z - & P" n# v. P; D
- ?>
複製代碼 |