CODE
[b]Warning[/b]: include(/home/peachy/public_html/anime/nav/header.php) [[url="http://just-peachy.com/anime/function.include"]function.include[/url]]: failed to open stream: No such file or directory in [b]/home/peachy/public_html/anime/index.php[/b] on line [b]2[/b]
[b]Warning[/b]: include() [[url="http://just-peachy.com/anime/function.include"]function.include[/url]]: Failed opening '/home/peachy/public_html/anime/nav/header.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in [b]/home/peachy/public_html/anime/index.php[/b] on line [b]2[/b]
[b]Warning[/b]: include() [[url="http://just-peachy.com/anime/function.include"]function.include[/url]]: Failed opening '/home/peachy/public_html/anime/nav/header.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in [b]/home/peachy/public_html/anime/index.php[/b] on line [b]2[/b]
Same error for the footer. I checked the paths and coding for both the includes and the cookiecheck.php and everything seems in order:
CODE
$total_skins = 2;
$default_skin = 2;
if (isset($_GET['newskin'])) $newskin = (int)$_GET['newskin'];
elseif (isset($_COOKIE['skin'])) $newskin = (int)$_COOKIE['skin'];
else $newskin = $default_skin;
if (empty($newskin) || $newskin < 1 || $newskin > $total_skins) $newskin = $default_skin;
setcookie('skin', $newskin, time()+(86400*365), '/');
$headervar = "/home/peachy/public_html/anime/nav/header";
$footervar = "/home/peachy/public_html/anime/nav/footer";
$extension = ".php";
?>
$default_skin = 2;
if (isset($_GET['newskin'])) $newskin = (int)$_GET['newskin'];
elseif (isset($_COOKIE['skin'])) $newskin = (int)$_COOKIE['skin'];
else $newskin = $default_skin;
if (empty($newskin) || $newskin < 1 || $newskin > $total_skins) $newskin = $default_skin;
setcookie('skin', $newskin, time()+(86400*365), '/');
$headervar = "/home/peachy/public_html/anime/nav/header";
$footervar = "/home/peachy/public_html/anime/nav/footer";
$extension = ".php";
?>
CODE
<?php include("/home/peachy/public_html/anime/cookiecheck.php");
include($headervar.$skin.$extension);?>
include($headervar.$skin.$extension);?>
It seems like the code should be accessing header2.php and instead, for some reason it's trying to access header.php, which doesn't exist.
This is likely something really obvious that I'm missing in my frustration, but I could use an extra pair of eyes.