2013-05-21 1 views
0

나는 this website을 디자인 중이며 .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를 사용하여 시도했는데 (다시 업로드하기 전에 파일을 삭제하지 않았 음) 아무 것도하지 않았습니다.

+2

우리에게 codez 보여주십시오. –

+0

먼저 파일을 삭제하지 않고 파일을 업로드 하시겠습니까? 일부 FTP 클라이언트는 몇 가지 추가 코드로 덮어 쓸 것입니다 – Fabi

+0

너! 내가 편집에서 말했듯이 FTP 클라이언트 일 수도 있습니다. – lipusal

답변

0

파일을 업로드하기 전에 삭제해야합니다. 일부 FTP 클라이언트는 몇 가지 추가 코드로 덮어 쓸 것입니다 ...

+0

그래, 그랬어! 고마워, [Koding] (http://example.com)의 업로드 방법으로 인해 문제가 발생했습니다. – lipusal