我在WPBlogheader.php文件裡添加GGAnalytics代碼,出現以下提示是怎麼回事?Parse error: syntax error, unexpected '<' in /home/pspbay/public_html/uhappyclub.com/wp-blog-header.php on line 21。我明白英文意思,但是不知道<會 為什麼出錯- <?php" m6 ~7 l0 Z( }) H& E) Q& Z
- /**
5 e1 t; v4 R/ e7 W2 O5 O - * Loads the WordPress environment and template. @3 h& I1 ^* i" [+ p
- ** [5 A, e7 Z% V ]" a* E: P
- * @package WordPress2 N. O7 d _- K* _1 c" {5 |
- */
. V' L9 a+ u8 @8 I - 9 a1 f! }3 Z! t% W8 g- u0 [; B3 c
- if ( !isset($wp_did_header) ) {
4 q9 v+ b# `9 x0 S
- P% w, ]7 u, f& ~, q- $wp_did_header = true;) d7 J7 X# I% M
- ' [6 f( ]# T& [# \2 A1 ~
- require_once( dirname(__FILE__) . '/wp-load.php' );
) h8 E6 N4 W# R
; ~7 o$ }; U! w$ R! s- wp();1 Y" j- e7 A4 q0 H4 Q9 F
- , T5 Z* [1 ^% ]- E- n
- require_once( ABSPATH . WPINC . '/template-loader.php' );
+ G9 w# i7 q, F* K - 1 W& q1 B2 e7 r1 C$ A
- }0 F3 G) l5 g+ P0 f) L0 d9 Q* l
- D; Z$ d- ^4 o0 x- & l- H' ^' B" U1 w- Q! C& c1 _
- <script type="text/javascript">
' \5 w; S; @. Q3 d. T - var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");: x& C( Q) C( L5 ^2 {$ V; P0 k% R
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
: U8 N S0 l- B! l - </script>
: R( k( W& ]3 o+ [6 w" o) O - <script type="text/javascript">& S" e' @% s2 b1 y3 k
- try {
- E3 a/ J7 g: K5 J - var pageTracker = _gat._getTracker("UA-11735751-1");
3 y( M" [9 M2 o; N" @2 M - pageTracker._trackPageview();
8 m9 [/ i* a: Z9 y. ^! n - } catch(err) {}</script>
! C* V8 i) h) @3 u1 `
( A" g4 G9 q' u- ?>
複製代碼 |
|