Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/74.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 页脚重复自身_Php_Html_Repeat - Fatal编程技术网

Php 页脚重复自身

Php 页脚重复自身,php,html,repeat,Php,Html,Repeat,我正在设计,我需要它是.php来与数据库通信,并启动一些倒计时时钟(它们还没有启动)。页面最初是.html,一切都很完美,但由于某种原因,我将其更改为.php,页脚不断重复。代码在我的编辑器上会很好,我会加载页面,在编辑器上重新加载文件,代码会以某种方式自动出现在那里! 现在没有PHP代码,我只是更改了文件的扩展名。如果您访问的是相同的URL,但却是.html版本,您将看到一切正常。这可能是什么原因造成的 提前感谢您的帮助 编辑: 整个HTML代码: <!DOCTYPE HTML>

我正在设计,我需要它是.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>

水绿色
.幻灯片{左边距:24.45%;}
addEvent('domready',function(){
var data={'pic07.jpg':{/*没有字幕、缩略图或任何东西*/},'pic06.jpg':{},'pic10.jpg':{},'pic02.jpg':{};
新幻灯片放映('Slideshow',数据,{控制器:false,缩略图:false,加载程序:false,高度:400,宽度:600,hu:'images/',转换:'back:in:out'});
});
链接
与我们联系
  • 地址 Aqua有限责任公司
    旧里奇伯里路39号
    丹伯里,CT 06810

  • 电话 (800)000-0000

  • &抄袭;Aqua有限责任公司
  • 图像:+
  • 设计:+

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

请确保在上传之前删除文件。一些FTP客户端将使用一些额外的代码进行写操作…

您是否在不先删除文件的情况下上载了文件?一些FTP客户端将使用一些额外的代码进行写操作!可能是FTP客户端,就像我在编辑上说的那样,尝试一下,它不起作用,然后更新你的问题,因为它与FTP无关!成功了!可惜我花了一整天的时间试图解决这个问题……唉,我现在该怎么更新我的问题呢?是的,就是这样!谢谢,我猜的上传方法引起了问题