我在WPBlogheader.php文件裡添加GGAnalytics代碼,出現以下提示是怎麼回事?Parse error: syntax error, unexpected '<' in /home/pspbay/public_html/uhappyclub.com/wp-blog-header.php on line 21。我明白英文意思,但是不知道<會 為什麼出錯- <?php
* b5 ?3 _0 l1 K# n0 n1 T# A - /**
0 h7 I% I. v$ y! J - * Loads the WordPress environment and template.9 [7 X3 @0 E2 | t
- *6 X! |/ @) q$ `% |
- * @package WordPress
0 {) L9 o# U$ D2 j7 X - */
) \1 D8 r4 k9 ?$ d - 0 \2 z+ V* F& s
- if ( !isset($wp_did_header) ) {
# Q% Z# b+ A1 \4 N/ P" O
+ L7 ]1 s- c# E7 C& D- $wp_did_header = true;4 j. U6 E( v1 Q
' }# x4 v) i+ g) Z" y; h4 h- require_once( dirname(__FILE__) . '/wp-load.php' );
& f9 |4 Z5 _* x
, Q# R% q- J% |- wp();
7 E4 }; N1 {( Q, x8 m* F2 T: x
) _# q3 c T5 U @9 ~- d& t2 a- require_once( ABSPATH . WPINC . '/template-loader.php' );
* U7 G! P, l! M
% f* U% V$ U4 t& ~& ]6 e" b- }; T9 m6 u9 U1 F
- ; k O1 e9 A) q/ ]# j/ b
- 5 x* }; L3 M0 ^( G4 i
- <script type="text/javascript">" P" s a7 R0 N* P) B- U5 K7 L$ d
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");* p: {) M* Y; y. C |" l& U. h
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));) k' D+ W% o0 ~
- </script>
& w9 n& M/ t. |+ @6 m: d - <script type="text/javascript">
" I! ~0 d8 y) L2 V( V: J3 a7 m - try {; z. P3 T' Q/ M: p$ t
- var pageTracker = _gat._getTracker("UA-11735751-1");
! `' v' [1 F: `' F - pageTracker._trackPageview();
5 p& V+ R! w9 E0 L. o( ^ - } catch(err) {}</script>% L" o. O' q" E8 T" r- l
- " ]. m2 H" `5 B
- ?>
複製代碼 |
|