本帖最後由 angel 於 2011-1-24 18:09 編輯
* K- I$ F, n6 Q- \* T$ D- f( B+ m, f6 e# r
請問這段代碼哪裡出錯了,打開主頁提示
! Q; G0 e5 U5 ^+ Y. x1 q) ~" N- E# W; b( O0 ^6 u t
Parse error: syntax error, unexpected T_VARIABLE in /home/oneabc/public_html/網址/includes/configs/smarty_config.php on line 1 3 U9 Y/ t4 {8 V. A! r1 B/ S
7 l5 T- n1 b* p0 Y1 d. w1 l. nsmarty_config.php文件內容如下:- <?php
$ _. g% _3 r [: N7 s
+ \) m& A- j$ H& |: ^0 n" |- ( d* L' h, Y+ w* v7 l; [
- /*$ o: p+ h9 [$ W- E2 ^9 j) r; z
- Filename: smarty_config.php
. v7 e0 ~! ^' S5 {8 Z$ |' T% _ - Creation Date: 20-04-2010
: \) v$ i3 T3 G3 g7 N6 `; D - Author: M Rogers (www.XXXXX.com)
: A% P8 x w$ e) D1 J4 v$ K$ ? - Project: ShrinkMe) M' k* [7 F8 I, M0 E! d+ c
- */
/ J" r3 ^3 E! D) \4 v. U
- Q3 A0 X7 x( t( }* m# |- 9 L; {" `' w; J0 |6 X
- /** paths to smarty directorys **/
, {% ]8 T% U, j7 h6 P+ a - $smartypath_template_dir = $_CONFIG['paths']['base'] . '/templates';$ t3 G6 G3 x" `4 @4 k1 [
- $smartypath_compile_dir = $_CONFIG['paths']['base'] . '/cache/templates';; _# z+ O w$ r+ D6 ?2 v
- $smartypath_cache_dir = $_CONFIG['paths']['base'] . '/cache/templates';
9 V; a# D- D$ \1 @ - 4 O8 a% `% A/ N i' H* G, k
- /** initiate smarty class **/( H" ~ }& b! |
- require($_CONFIG['paths']['base'] . '/public_html/網址/includes/smarty/Smarty.class.php');
6 L6 U/ t) O4 e9 B0 q - $smarty = new Smarty();
) v& k3 o) p, _- r
^; S0 n7 A0 Y- I- /** assign smarty directory paths **/
! L; `) n! o& {% p, `( E' f - $smarty->template_dir = $smartypath_template_dir;2 d# X x; t/ T" I% S8 c
- $smarty->compile_dir = $smartypath_compile_dir;+ \' n* y2 a4 H5 L* H1 C: i
- $smarty->cache_dir = $smartypath_cache_dir;" }7 s) a6 B a/ I0 h4 B8 s
- $smarty->config_dir = $smartypath_config_dir;
- @$ O( d& o7 J: d/ J
! V; W! E3 ]: B4 k# Y7 V5 i- ?>
複製代碼 |