我在WPBlogheader.php文件裡添加GGAnalytics代碼,出現以下提示是怎麼回事?Parse error: syntax error, unexpected '<' in /home/pspbay/public_html/uhappyclub.com/wp-blog-header.php on line 21。我明白英文意思,但是不知道<會 為什麼出錯- <?php: B# r& U6 |6 O. g( D" P
- /**
9 ?& g( M7 n* B6 R - * Loads the WordPress environment and template.
. Q1 ~# }5 }: x Y# ^! A - *
+ V- x8 [5 t0 P$ ], ~! ] - * @package WordPress
* |9 u# A4 p! F7 {8 Y9 s: i - */; D5 m7 \ ?" ~% n
- 9 l6 V+ }8 g8 o% g; o# M
- if ( !isset($wp_did_header) ) {) c: V- O& i* U+ D1 v
+ |9 ^0 T- }: T: b8 H5 }9 J$ W/ b- $wp_did_header = true;% V% k- x$ t+ D' J: G
- ) k4 k. E: \: H3 l
- require_once( dirname(__FILE__) . '/wp-load.php' );2 {; k2 q8 C# o0 N3 O' w' K
, M U" d6 O" ~, [7 Q- wp();5 F$ E4 D! x/ J' X: r2 i1 p* t# h" I
+ {) c: c# M6 h- require_once( ABSPATH . WPINC . '/template-loader.php' );# @3 Y( W% E7 l8 `+ y f
% V; b# A8 y, W r4 b% Q& b- }
- V5 A+ B) `6 r3 A u
9 u3 _+ M ~* L# C) t9 \- % D9 l. p" e% p- Q! [% U& P
- <script type="text/javascript">" C: {' D+ w. d- }" C
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");1 e4 e; M( R( U4 K
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));# [) P$ O# r, t% a: u6 U( O
- </script>
) m$ H( Q' j& E2 R: c - <script type="text/javascript">
- ]: b! Y$ M8 y8 ` - try {, t' B; c# s* ]+ D" o/ ]
- var pageTracker = _gat._getTracker("UA-11735751-1");
% d, ^, q ^: @1 X& P - pageTracker._trackPageview();
" j' d! q9 @% ]% X) G( | - } catch(err) {}</script>% \& ^5 b" `, q
- ; y: F4 Z! D$ L* c! K# ^% c
- ?>
複製代碼 |
|