-1
我的一位朋友在她的所有網站上都出現這個錯誤。他們都在同一臺服務器上,外部託管(託管公司說他們不能幫助解決腳本問題,典型)PHP在輸入中出現意外的字符:'''(ASCII = 39)
每個站點甚至都給出了確切的一些行號,但它們都使用不同的Index.php文件。我有點難過,有沒有人看過這樣的事情?
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/xxxx/public_html/index.php on line 17
Parse error: syntax error, unexpected '.' in /home/xxxx/public_html/index.php on line 17
這裏是在index.php文件內容之一,線路1 - 25左右
<?php get_header(); ?>
<link rel="shortcut icon" href="favicon.ico" >
<div class="left-navi-blog">
<?php include "left-sidebar.php";?>
</div>
<div class="center-blog">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post-title">
<strong><a id="post-<?php the_ID(); ?>" href="<?php the_permalink() ?>" rel="bookmark" title=" <?php the_title(); ?>"><?php the_title(); ?></a></strong> -
<ahh class="post-title-meta"><?php the_time('F j, Y') ?> by
<?php the_author() ?></ahh>
</div>
17號線上的代碼?其實,第1到第20行怎麼樣? – 2009-08-13 17:38:30
向我們展示index.php文件的內容。 – mcandre 2009-08-13 17:41:07
事情是,這發生在她所有的網站上,所有這些網站都有不同的index.php文件。我甚至嘗試改變主題(wordpress),其中添加了第四個index.php混合並得到完全相同的錯誤。 – Jmichelsen 2009-08-13 17:41:21