0

我正在设计这个网站,我需要它是 .php 以与数据库通信并启动一些倒计时时钟(尚未启动)。该页面最初是 .html 并且一切都很完美,但由于我出于某种原因将其更改为 .php,因此页脚不断重复。代码在我的编辑器上会很好,我将加载页面,在编辑器上重新加载文件,代码会以某种方式单独出现在那里!现在没有任何 PHP 代码,我只是更改了文件的扩展名。如果您访问相同的 URL 但 .html 版本,您会发现一切正常。这可能是什么原因造成的?

在此先感谢您的帮助!

编辑:

整个 HTML 代码:

<!DOCTYPE HTML>
<html>
<head>
    <title>Aqua</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,900,300italic" rel="stylesheet" />
    <script src="js/jquery-1.8.3.min.js"></script>
    <script src="css/5grid/init.js?use=mobile,desktop,1000px&amp;mobileUI=1&amp;mobileUI.theme=none&amp;mobileUI.titleBarOverlaid=1&amp;viewport_is1000px=1060"></script>
    <script src="js/jquery.dropotron-1.2.js"></script>
    <script src="js/init.js"></script>
    <noscript>
        <link rel="stylesheet" href="css/5grid/core.css" />
        <link rel="stylesheet" href="css/5grid/core-desktop.css" />
        <link rel="stylesheet" href="css/5grid/core-1200px.css" />
        <link rel="stylesheet" href="css/5grid/core-noscript.css" />
        <link rel="stylesheet" href="css/style.css" />
        <link rel="stylesheet" href="css/style-desktop.css" />
    </noscript>
    <!--[if lte IE 8]><link rel="stylesheet" href="css/ie8.css" /><![endif]-->

    <!-- Photo gallery stuff -->
    <link rel="stylesheet" href="css/slideshow/slideshow.css">
    <style>
        .slideshow { margin-left: 24.45%; }
    </style>
    <script src="js/mootools-1.3.2-core.js"></script>
    <script src="js/mootools-1.3.2.1-more.js"></script>
    <script src="js/slideshow.js"></script>

    <script>
    window.addEvent('domready', function(){
        var data = { 'pic07.jpg': {/*No captions, thumbnails or anything*/}, 'pic06.jpg': {}, 'pic10.jpg': {}, 'pic02.jpg': {}};
        new Slideshow('slideshow', data, { controller: false, thumbnails: false, loader: false, height: 400, width: 600, hu: 'images/', transition: 'back:in:out'});
    });
</script>
    <!--End-->
</head>
<body class="homepage">
    <!-- Header Wrapper -->
        <div id="header-wrapper">
            <div class="5grid-layout">
                <div class="row">
                    <div class="12u">

                        <!-- Header -->
                            <section id="header">

                                <!-- Logo -->
                                    <img class="logo" src="images/aqua.jpg">

                                <!-- Nav -->
                                    <nav id="nav" class="mobileUI-site-nav">
                                        <ul>
                                            <li class="current_page_item"><a href="index.html">Home</a></li>
                                            <li><a href="photos.html">Photos</a></li>
                                            <li><a href="videos.html">Videos</a></li>
                                            <li><a href="store.html">Store</a></li>
                                            <li><a href="about.html">About Us</a></li>
                                            <li><a href="contact.php">Contact</a></li>
                                        </ul>
                                    </nav>
                            </section>

                    </div>
                </div>
                <div class="row">
                    <div class="12u">
                        <!-- Banner -->
                            <section id="banner">
                                <div id="slideshow" class="slideshow"></div>
                            </section>
                    </div>
                </div>
                <div class="row">
                    <div class="12u">

                            <!-- Intro -->
                            <section id="intro">
                                <div class="actions">
                                    <a href="#" class="button button-big">Get Started</a>
                                    <a href="#" class="button button-alt button-big">Learn More</a>
                                </div>

                            </section>
                    </div>
                </div>
            </div>
        </div>

    <!-- Footer Wrapper -->
        <div id="footer-wrapper">
            <!-- Footer -->
                <section id="footer" class="5grid-layout">
                    <div class="row">
                        <div class="4u">
                            <section>
                                <header>
                                    <h2>Links</h2>
                                </header>
                                <ul class="divided">
                                    <li><a href="events.php">Events/Tickets</a></li>
                                    <li><a href="photos.html">Photos</a></li>
                                    <li><a href="videos.html">Videos</a></li>
                                    <li><a href="store.html">Store</a></li>
                                    <li><a href="about.html">About Us</a></li>
                                    <li><a href="contact.php">Contact</a></li>
                                </ul>
                            </section>
                        </div>
                        <div class="4u">

                            <section>
                                <header>
                                    <h2>Connect with us</h2>
                                </header>
                                <ul class="social">
                                    <li class="facebook"><a href="#" class="icon48 icon48-1">Facebook</a></li>
                                    <li class="twitter"><a href="http://twitter.com/n33co" class="icon48 icon48-2">Twitter</a></li>
                                </ul>
                                <ul class="contact">
                                    <li>
                                        <h3>Address</h3>
                                        <p>
                                            Aqua, LLC<br />
                                            39 Old Ridgebury Road<br />
                                            Danbury, CT 06810
                                        </p>
                                    </li>
                                    <li>
                                        <h3>Phone</h3>
                                        <p>(800) 000-0000</p>
                                    </li>
                                </ul>
                            </section>

                        </div>
                    </div>
                    <div class="row">
                        <div class="12u">

                            <!-- Copyright -->
                                <div id="copyright">
                                    <ul class="links">
                                        <li>&copy; Aqua, LLC</li>
                                        <li>Images: <a href="http://facebook.com/DreametryDoodle">Dreametry Doodle</a> + <a href="http://iconify.it">Iconify.it</a></li>
                                        <li>Design: <a href="http://html5up.net">HTML5 Up!</a> + <a href="http://daytaro.com">Daytaro</a></li>
                                    </ul>
                                </div>
                        </div>
                    </div>
                </section>
        </div>
</body>
</html>

之后真的很尴尬地重复了一遍。它可能是 FTP 服务器,我为此使用Koding(不要问),它通过 FTP 连接到我的服务器。我也尝试过使用 FileZilla(在重新上传之前没有删除文件),但这并没有做任何事情。

4

1 回答 1

0

确保在上传之前删除文件。一些 FTP 客户端会用一些额外的代码重写...

于 2013-05-21T20:46:20.203 回答