Jump to content

Disappearing html problem/php includes


beattheindiedrum

Recommended Posts

Hello. The index page for my website contains both html makeup and a php include pointing towards a blogging script. When I check my code and visuals in DW MX everything looks peachy and clear. However, once I upload the index.php file to the server some of my html completely disappears.

[url=http://www.beattheindiedrum.com/]http://www.beattheindiedrum.com/[/url]

When I view the page source in Firefox to review the code which should be in the rightmost table (which appears pitch black and empty) it is completely gone.

When I download the index page directly to my computer and recheck it in Dreamweaver the code is there. Same applies for the html editor built into my cPanel file manager.

Also, when I remove the php include and change the file name back to .html all of the code appears live (as seen here: [url=http://www.beattheindiedrum.com/index.htm]http://www.beattheindiedrum.com/index.htm[/url])

So, are there settings on my web server that I may be overlooking to remedy this or do I just have a bad case of phantom code? I am guessing the php include has something to do with this since removing it clears the problem but I really don't see how that's possible. There was a period in time when this all worked flawlessly and effortly but then all of a sudden there was a problem. Any help would be super-appreciated.

Thanks in advance.
Link to comment
https://forums.phpfreaks.com/topic/27724-disappearing-html-problemphp-includes/
Share on other sites

<html>
<head>
<title>BEAT THE INDIE DRUM DOT COM</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>
<style type="text/css">
<!--
a:link {text-decoration: none}
a:visited {text-decoration: none}
a:active {text-decoration: none}
a:hover {text-decoration: underline}
-->
</style><body bgcolor="#666666" text="#000000" link="#000000" vlink="#000000" alink="#333333" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="560" border="0" align="center" cellpadding="4" cellspacing="0">
  <tr>
    <td rowspan="2" bgcolor="#666666">      <img src="bidlogo2small.jpg" width="76" height="75" border="5"> 
    </td>
    <td width="100%" bgcolor="#666666"> <a href="http://www.beattheindiedrum.com/"><img src="bidlogo1.jpg" width="455" height="28" border="5"></a></font></td>
  </tr>
  <tr>
    <td height="41" bgcolor="#666666">      <table width="464" border="0" cellspacing="0" cellpadding="4">
      <tr>
        <td width="49%" bgcolor="#000000"><table width="100%" border="0" cellspacing="1" cellpadding="2">
            <tr bgcolor="FF6600">
              <td width="24%" align="center"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="mixes.htm">Monthly Mixes</a></font></td>
              <td width="26%" align="center"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="collection.htm">Music Collection</a></font></td>
                <td width="16%" align="center"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="playlists.htm">Playlists</a>
                  <font color="#000000">&amp;</font> <a href="reviews.htm">Reviews</a></font></td>
              <td width="24%" align="center"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="market.htm">Buy/Sell/Trade</a></font></td>
              <td width="10%" align="center"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="links.htm">Links</a></font></td>
            </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="555" border="0" align="center">
  <tr>
    <td width="636"><img src="empty.gif" width="1" height="1"></td>
  </tr>
</table>
<table width="560" border="0" cellspacing="2" cellpadding="4" align="center">
  <tr bgcolor="#333333">
    <td bgcolor="#000000"> <table width="100%" border="0" cellspacing="0" cellpadding="4">
        <tr>
          <td width="4%" bgcolor="#000000">&nbsp;&nbsp;</td>
          <td width="96%" bgcolor="FF6600"> <font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif">
            <b>A-Marching We Will Go</b></font></td>
        </tr>
      </table></td>
  </tr>
</table>
<table width="561" border="0" cellspacing="4" cellpadding="4" align="center">
  <tr>
    <td width="65%" height="25%" valign="top" bgcolor="#000000">      <table width="369" border="0" cellspacing="0" cellpadding="4">
        <tr>
          <td width="49%" height="570" valign="top" bgcolor="#FFFFFF">
  <?PHP
  $sortby = 0;
  $sortad = d;
  $number = 17;
  include("cutehack/show_news.php");
          ?>
 
            <hr>
          </td>
      </tr>
    </table></td>
    <td width="32%" align="right" valign="top"> <table width="100%" border="0" cellspacing="2" cellpadding="4">
     
        <tr bgcolor="#333333">
          <td bgcolor="#000000">
            <table width="100%" border="0" cellspacing="0" cellpadding="4">
              <tr>
                <td width="15%" bgcolor="#000000">&nbsp;<strong><font face="Georgia, Times New Roman, Times, serif"><font color="FF6600">!</font></font></strong></td>
                <td width="85%" bgcolor="#333333"><div align="center"><font color="#CCCCCC" size="2" face="Verdana, Arial, Helvetica, sans-serif"><b>Other
                    Stuff </b></font></div></td>
              </tr>
          </table></td>
        </tr>
        <tr>
          <td bgcolor="#000000"><table width="100%" border="0" cellspacing="1" cellpadding="2">
              <tr bgcolor="FF6600">
                <td align="center" bgcolor="#B6B6B6"><div align="left">
                    <p><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><u><a href="http://www.beattheindiedrum.com/releases/">Netlabel</a></u></strong></font></p>
                    <p><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="http://www.beattheindiedrum.com/forums/"><u>Forum</u></a></font></strong></p>
                    <p><b><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif">Archives</font></b></p>
                    <p><b><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="mayarchives.htm"><u>May
                      2005<br>
                      </u></a><u><a href="junearchives.htm">June 2005<br>
                      </a><a href="julyarchives.php">July 2005 to present</a></u></font></b></p>
                    <p><b><u><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="http://www.beattheindiedrum.com/cutehack/rss.php" target="_blank"><img src="http://www.beattheindiedrum.com/images/rssblue.gif" width="36" height="14" border="0"></a></font></u></b></p>
                    <p><b><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif">Beat's
                      Best of 2005<br>
                      </font></b><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>Akron/Family</strong>
                      - s/t<br>
                      <strong>Architecture In Helsinki</strong> - in case we die<br>
                      <strong>Ariel Kill Him</strong> - labyrinths EP<br>
                      <strong>Art Brut</strong> - bang bang rock n roll<br>
                      <strong>Lou Barlow</strong> - emoh<br>
  <strong>Barnes, Jamie</strong> - honey from the ribcage<br>
                      <strong>Biirdie</strong> - morning kills the dark<br>
  <strong>Binary Dolls</strong> - too much thinking sinks ships<br>
                      <strong>Bird, Andrew</strong> - the mysterious production
                      of eggs<br>
                      <strong>Black Mountain</strong> - s/t<br>
                      <strong>Broken Family Band</strong> - welcome home loser<br>
  <strong>Clientele, The</strong> - strange geometry<br>
  <strong>Cloud Cult</strong> - advice from the happy hippopotamus<br>
  <strong>Clue To Kalo</strong> - one way, it's every way<br>
  <strong>Costa, Matt</strong> - songs we sing<br>
  <strong>Doleful Lions</strong> - shaded lodge and mausoleum<br>
  <strong>Emperor X</strong> - central hug/friendarmy/fractaldunes<br>
                      <strong>First Coat - </strong>move like sparrows<br>
                      <strong>Gogol Bordello</strong> - gypsy punks underdog world
                      strike <br>
  <strong>Hammock</strong> - kenotic<br>
  <strong>Idaho</strong> - the lone gunman<br>
                      <strong>Karate</strong> - in the fishtank, vol. 12<br>
                      <strong>L'altra</strong> - different days<br>
                      <strong>Lassie Foundation</strong> - face your fun<br>
                      <strong>London Apartments, The</strong> - romanticism aside<br>
  <strong>McRae, Tom</strong> - all maps welcome<br>
                      <strong>Minus Story, The</strong> - heaven and hell EP<br>
                      <strong>Mobius Band</strong> - city vs. country EP<br>
  <strong>Mobius Band</strong> - the loving sounds of static<br>
                      <strong>Mockers, The</strong> - the lonesome death of electric
                      campfire<br>
                      <strong>Old Scratch Revival Singers</strong> - oh didn't
                      he ramble<br>
                      <strong>Oslo</strong> - s/t<br>
  <strong>Phosphorescent</strong> - aw come aw wry<br>
                      <strong>Readymade</strong> - all the plans resting<br>
                      <strong>Red Sparowes</strong> - at the soundless dawn<br>
  <strong>Robot Ate Me, The</strong> - carousel waltz<br>
                      <strong>Saxon Shore</strong> - luck will not save us from
                      a jackpot of nothing EP <br>
  <strong>Silence Kit</strong> - pieonear<br>
  <strong>65daysofstatic</strong> - one time for all time<br>
                      <strong>Solly</strong> - get it wrong, it's alright<br>
                      <strong>South San Gabriel</strong> - the carlton chronicles<br>
                      <strong>Sufjan Stevens</strong> - come on feel the illinoise<br>
                      <strong>Summer At Shatter Creek</strong> - all the answers<br>
  <strong>Syme</strong> - swing swing<br>
                      <strong>Teenage Fanclub</strong> - man-made<br>
  <strong>Testface</strong> - doctor won't you get us dawn<br>
  <strong>Voxtrot</strong> - raised by wolves EP<br>
                      <strong>Wedding Present</strong> - take fountain<br>
                      <strong>Wintersleep</strong> - s/t<br>
                      <strong>Youth Pictures Of Florence Henderson</strong> -
                      unnoticeable in a tiny town</font></p>
                    <p><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><a href="http://www.lastfm.com/user/TheBeat/"><u>My
                      Audioscrobbler</u></a></strong></font></p>
                    <p><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="http://rateyourmusic.com/%7ETheBeat" target="_blank"><u>My
                      Rateyourmusic</u></a></font></strong></p>
                    <p><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="http://www.myspace.com/beattheindiedrum" target="_blank"><u>My
                      Space</u></a></font></strong></p>
                    <p><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Yahoo
                      = justsutureself</font></strong></p>
                    <p><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif"><font size="2"><strong><a href="aboutme.htm"><u>About
                      Me</u></a></strong> </font></font></p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                  <p>&nbsp;</p>
                </div>
                </td>
              </tr>
          </table></td>
        </tr>
      </table></td>
  </tr>
</table>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="2" bgcolor="#CCCCCC">
  <!--DWLayoutTable-->
  <tr>
    <td width="320" height="23" valign="top"><font size="1">&copy;2005 beattheindiedrum.com
      </font> <font size="2">[designed by <a href="http://people.bu.edu/yurij/yrl.htm">Young
      Robot Lover</a>]</font></td>
    <td width="441" align="right" valign="top"><font color="#FFFFFF"><a href="mixes.htm"><font size="2">Monthly
      Mixes</font></a></font> <font size="2">&#149; <font color="#FFFFFF"><a href="collection.htm">Music
      Collection</a></font></font> <font size="2">&#149; <font color="#FFFFFF"><a href="playlists.htm">Playlists</a></font></font>
      <font size="2">&amp; <a href="http://www.beattheindiedrum.com/reviews.htm">Reviews</a>
      &#149; <a href="http://www.beattheindiedrum.com/market.htm">Buy/Sell/Trade</a></font>
      <font size="2">&#149; <font color="#FFFFFF"><a href="links.htm">Links</a></font></font></td>
  </tr>
</table>
</body>
</html>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.