PHP输入中的意外字符:'''(ASCII = 39)

时间:2009-08-13 17:37:02

标签: php

我的一位朋友在她的所有网站上都收到了这个错误。它们都在同一台服务器上,外部托管。(托管公司表示他们无法帮助解决脚本问题。典型的。)

每个站点甚至提供了确切的行号,但它们都使用不同的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>

1 个答案:

答案 0 :(得分:0)

实际上您的网站遭到黑客入侵。它也发生在我身上。所有的PHP文件都受到影响。确保你有非常密集的安全密码。看看你的ftp日志。可能会有大量的下载和上传。他们在许多php文件中插入一些iframe ..