Ok, just a reminder, the website is a live site on a live server and everything works properly. I installed xampp on my laptop, ftp'd the live site into the htdocs folder on the laptop, and the two included files in the body.inc file (second code below) are not being included when the pages load. It's not a browser issue, and there are no messages of any kind in the logs, in regards to the include files, and no error messages of any kind, period. The live site is running on a linux box, my laptop is running win7pro. The xampp install is completely default. The purpose of the local, laptop, installation is simply for development of the site, offline, so this is no game-breaker, but it is irritating, to say the least.
the code below is the index.php file
- Code: Select all
<?php
include("db_connect.inc");
include("header.inc");
include("body.inc");
// setup SQL statement
$result = mysql_query("SELECT body, description, blog_page FROM `blogs` WHERE id=(select max(id) from blogs)") or die(mysql_error());
//execute SQL statement
$row = mysql_fetch_array( $result );
// check for errors
if (!$result) { echo( mysql_error()); }
else {
// display results
echo $row['body'];
}
//include("comment_box.inc");
include("footer.inc");
?>
And the following is the body.inc file -
- Code: Select all
<body>
<p><script type="text/javascript">
// <![CDATA[
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=600,height=200,scrollbars=yes');
return false;
}
// ]]>
</script></p>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div id="main">
<div id="header">
<div id="logo">
<div id="logo_text">
<!-- class="logo_colour", allows you to change the colour of the text -->
<h1><a href="index.php">Chip<span class=
"logo_colour">Wiegand</span></a></h1>
</div>
</div>
<? include("menu.inc"); ?>
<div id="site_content">
<div class="sidebar"><!-- insert sidebar items here -->
<img src="images/Chip%204-30-2011%202.JPG" alt="Chip Wiegand"
width="190" height="144" border="0">
<div class="fb-follow" data-href="https://www.facebook.com/chip.wiegand.colombia" data-colorscheme="light" data-layout="button" data-show-faces="false"></div>
<a href="http://co.linkedin.com/pub/chip-wiegand/83/ab6/a35/"><img src="images/logo_linkedin_56x14.png" alt="LinkedIn" border="0" /></a>
<a onclick="return popup(this, 'notes')" href="http://wiegand.org/wu_transfer_info.html"><img src="images/western_union_logo.jpg" alt="Chip Wiegand" width="150" height="50" border="0"><a onclick="return popup(this, 'notes')" href="http://wiegand.org/wu_transfer_info.html"></a>
<a href="https://www.crowdrise.com/Chipwiegand"><img src="images/crowdrise-logo.png" alt="Crowdrise" width="150" height="50" border="0" /></a>
<?
include("recent_list.php");
?>
<br>
<p><a href="http://info.flagcounter.com/94Ki"><img src="http://s10.flagcounter.com/count/94Ki/bg_FFFFFF/txt_000000/border_FFFFFF/columns_2/maxflags_50/viewers_0/labels_1/pageviews_0/flags_0/" alt="Free counters!" border="0"></a></p>
</div>