Hi all, I'm hoping to get some help with this problem. I'm in way over my head, but hate to trash my sites over something that is likely a simple fix. I built two sites several years ago for my artwork. I used just enough php to make things easy (such as require( ) to be able to make changes across all pages by adjusting a single .htm file). I also used php to set up a very basic image gallery (no database) that would be somewhat easy for me to update. Everything has been working great for years until my hosting company upgraded to php 5.4. Now, the two sites in wich I used php as described above return the following error message in the browser:
I contacted my hosting company and they provided the following error messages from Apache:
SITE 1
Here is the index page (index.php) for the error message above associated with "/home/snodart/public_html/index.php"
<!--copyrith 2005. Justin Snodgrass-->
<?php
require ("includes/doctype.htm");
?>
<head>
<title>SnodArt.com - Home</title>
<?php
require ("includes/meta.htm");
?>
<?php
require ("includes/java.htm");
?>
</head>
<?php
require ("includes/body_top.htm");
?>
<div class="content">
<h3>Home</h3>
<p><img class="inparagraph" src="images/justin_paint.jpg" alt="Justin Snodgrass" width="117" height="100" />
I have moved my artwork to <a href="http://www.justinsnodgrass.com">justinsnodgrass.com</a>.
</p>
<p>
The <a href="http://snodart.com/hbe.php">DIY fimmaking equipment</a> and <a href="http://snodart.com/tutorials.php">depth of field tutorial</a> portions of this site are still getting over 1,500 hits per month. I will leave those portions up for now. The depth of field tutorial is also up on <a href="http://www.youtube.com/user/snodart#p/u/2/gIZ8bNkLL7w">youtube</a>.
<br />
<br />
-Justin
</p>
</div><!--content-->
<?php
require ("includes/menu.htm");
?>
<?php
require ("includes/body_bottom.htm");
?>
Here are the .htm files that the require() is grabbing above:
doctype.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
meta.htm
<meta name="description" content="Custom creations by Justin Snodgrass including drawing, painting, sculpture, photography, computer 3D, and filmmaking." />
<meta name="keywords" content="justin snodgrass, snodart, art, drawing, draw, painting, paint, oil, portrait, oil portrait, photography, photo, sculpture, sculpt, computer, 3D, animation, 3D animation, film, filmmaking, DIY, equipment, home built, jib, dolly, crane, tripod, stabilizer, DV, video, short film, films" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="snodartCSS2.css" />
java.htm
<!-- Begin Script For New Image Windows -->
<script language="Javascript" type="text/javascript">
<!-- Hide script from old browsers
/*Use 630x430 or 430x630 for photo new window large and 320x213 or 213x320 for med*/
function newWindowWideP(bigimagewidep)
{
bigWindowWideP = window.open(bigimagewidep,"bigWinWideP", "width=630,height=430")
bigWindowWideP.focus()
}
function newWindowTallP(bigimagetallp)
{
bigWindowTallP = window.open(bigimagetallp,"bigWinTallP", "width=430,height=630")
bigWindowTallP.focus()
}
function newWindowWide(bigimagewide)
{
bigWindowWide = window.open(bigimagewide,"bigWinWide", "width=520,height=420")
bigWindowWide.focus()
}
function newWindowTall(bigimagetall)
{
bigWindowTall = window.open(bigimagetall,"bigWinTall", "width=420,height=520")
bigWindowTall.focus()
}
function newWindowSquare(bigimagesquare)
{
bigWindowSquare = window.open(bigimagesquare,"bigWinSquare", "width=520,height=520")
bigWindowSquare.focus()
}
function newWindow(bigimage)
{
bigWindow = window.open(bigimage,"bigWin", "width=630,height=630")
bigWindow.focus()
}
/*Begin Script For Rollovers*/
if (document.images) {
magOn = new Image
magOff = new Image
prevOn = new Image
prevOff = new Image
nextOn = new Image
nextOff = new Image
homeOn = new Image
homeOff = new Image
aboutOn = new Image
aboutOff = new Image
contactOn = new Image
contactOff = new Image
drawingsOn = new Image
drawingsOff = new Image
paintingsOn = new Image
paintingsOff = new Image
photographyOn = new Image
photographyOff = new Image
sculptureOn = new Image
sculptureOff = new Image
three_dOn = new Image
three_dOff = new Image
filmmakingOn = new Image
filmmakingOff = new Image
magOn.src = "images/mag_glass_orange.gif"
magOff.src = "images/mag_glass_blue.gif"
prevOn.src = "images/arrow_left_orange.gif"
prevOff.src = "images/arrow_left_blue.gif"
nextOn.src = "images/arrow_right_orange.gif"
nextOff.src = "images/arrow_right_blue.gif"
homeOn.src = "images/b_home.gif"
homeOff.src = "images/w_home.gif"
aboutOn.src = "images/b_about.gif"
aboutOff.src = "images/w_about.gif"
contactOn.src = "images/b_contact.gif"
contactOff.src = "images/w_contact.gif"
drawingsOn.src = "images/b_drawings.gif"
drawingsOff.src = "images/w_drawings.gif"
paintingsOn.src = "images/b_paintings.gif"
paintingsOff.src = "images/w_paintings.gif"
photographyOn.src = "images/b_photography.gif"
photographyOff.src = "images/w_photography.gif"
sculptureOn.src = "images/b_sculpture.gif"
sculptureOff.src = "images/w_sculpture.gif"
three_dOn.src = "images/b_3d.gif"
three_dOff.src = "images/w_3d.gif"
filmmakingOn.src = "images/b_filmmaking.gif"
filmmakingOff.src = "images/w_filmmaking.gif"
}
else {
magOn = ""
magOff = ""
prevOn = ""
prevOff = ""
nextOn = ""
nextOff = ""
homeOn = ""
homeOff = ""
aboutOn = ""
aboutOff = ""
contactOn = ""
contactOff = ""
drawingsOn = ""
drawingsOff = ""
paintingsOn = ""
paintingsOff = ""
photographyOn = ""
photographyOff = ""
sculptureOn = ""
sculptureOff = ""
three_dOn = ""
three_dOff = ""
filmmakingOn = ""
filmmakingOff = ""
document.mag = ""
document.prev = ""
document.next = ""
document.home = ""
document.about = ""
document.contact = ""
document.drawings = ""
document.paintings = ""
document.photography = ""
document.sculpture = ""
document.three_d = ""
document.filmmaking = ""
}
// End hiding script from old browsers //-->
</script>
<!--End Script For Rollovers-->
body_top.htm
<!--inc_body_top.htm-->
<body>
<div class="main_contain">
<div class="main">
<div class="height_bar">
</div><!--height_bar-->
<img id="snodart" src="images/snodart.gif" alt="Justin Snodgrass" />
menu.htm
<!--inc_nav.htm-->
<div class="nav">
<div class="links">
<a href="index.php">
HOME
</a>
<br />
<br />
<a href="filmmaking.php">
FILMMAKING
</a>
</div><!--links-->
</div><!--nav-->
<!--inc_nav.htm-->
body_bottom.htm
<div class="float_fix">
</div><!--float_fix-->
</div><!--main-->
<!--inc_footer.htm-->
<div class="footer">
<p>
hosted by: <a href="http://www.virtuosonetsolutions.com/affiliate/idevaffiliate.php?id=57" target="blank">Virtuoso Net Solutions</a>
copyright © 2005. <a href="mailto:
[email protected]">Justin Snodgrass</a>
<a href="http://validator.w3.org/check?uri=referer" target="blank">html</a> <a href="http://jigsaw.w3.org/css-validator/check/referer" target="blank">css</a>
</p>
</div><!--footer-->
<!--inc_footer.htm-->
</div><!--main_contain-->
</body>
</html>
SITE 2
Below is the index page (index.php) for the site associated with "home/snodart/public_html/justinsnodgrass/index.php" in the error messages above.
<!--copyrith 2011. Justin Snodgrass-->
<?php
require ("includes/doctype.htm");
?>
<head>
<title>JUSTIN SNODGRASS - HOME</title>
<?php
require ("includes/meta.htm");
?>
<?php
require ("includes/java.htm");
?>
</head>
<?php
require ("includes/header_menu.htm")
?>
<div id="content">
<img src="images/mbt.jpg" width="451" height="600" alt="image" />
<p><span class="title">My Big Toe</span><br />© 2011<br />Charcoal <br />(38" X 47")</p>
</div>
<?php
require ("includes/footer_end.htm");
?>
Here are the .htm files that the require() is grabbing above:
doctype.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
meta.htm
<meta name="description" content="Artwork by Justin Snodgrass." />
<meta name="keywords" content="justin snodgrass, snodart, art, drawing, draw, painting, paint, oil, portrait, oil portrait, photography, photo, sculpture, sculpt" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="justinsnodgrass.css" />
java.htm
<!-- Begin Script For New Image Windows -->
<script language="Javascript" type="text/javascript">
<!-- Hide script from old browsers
/*Use 630x430 or 430x630 for photo new window large and 320x213 or 213x320 for med*/
function newWindowWideP(bigimagewidep)
{
bigWindowWideP = window.open(bigimagewidep,"bigWinWideP", "width=630,height=430")
bigWindowWideP.focus()
}
function newWindowTallP(bigimagetallp)
{
bigWindowTallP = window.open(bigimagetallp,"bigWinTallP", "width=430,height=630")
bigWindowTallP.focus()
}
function newWindowWide(bigimagewide)
{
bigWindowWide = window.open(bigimagewide,"bigWinWide", "width=520,height=420")
bigWindowWide.focus()
}
function newWindowTall(bigimagetall)
{
bigWindowTall = window.open(bigimagetall,"bigWinTall", "width=420,height=520")
bigWindowTall.focus()
}
function newWindowSquare(bigimagesquare)
{
bigWindowSquare = window.open(bigimagesquare,"bigWinSquare", "width=520,height=520")
bigWindowSquare.focus()
}
function newWindow(bigimage)
{
bigWindow = window.open(bigimage,"bigWin", "width=630,height=630")
bigWindow.focus()
}
/*Begin Script For Rollovers*/
if (document.images) {
magOn = new Image
magOff = new Image
prevOn = new Image
prevOff = new Image
nextOn = new Image
nextOff = new Image
homeOn = new Image
homeOff = new Image
aboutOn = new Image
aboutOff = new Image
contactOn = new Image
contactOff = new Image
drawingsOn = new Image
drawingsOff = new Image
paintingsOn = new Image
paintingsOff = new Image
photographyOn = new Image
photographyOff = new Image
sculptureOn = new Image
sculptureOff = new Image
three_dOn = new Image
three_dOff = new Image
filmmakingOn = new Image
filmmakingOff = new Image
magOn.src = "images/mag_glass_orange.gif"
magOff.src = "images/mag_glass_blue.gif"
prevOn.src = "images/arrow_left_orange.gif"
prevOff.src = "images/arrow_left_blue.gif"
nextOn.src = "images/arrow_right_orange.gif"
nextOff.src = "images/arrow_right_blue.gif"
homeOn.src = "images/b_home.gif"
homeOff.src = "images/w_home.gif"
aboutOn.src = "images/b_about.gif"
aboutOff.src = "images/w_about.gif"
contactOn.src = "images/b_contact.gif"
contactOff.src = "images/w_contact.gif"
drawingsOn.src = "images/b_drawings.gif"
drawingsOff.src = "images/w_drawings.gif"
paintingsOn.src = "images/b_paintings.gif"
paintingsOff.src = "images/w_paintings.gif"
photographyOn.src = "images/b_photography.gif"
photographyOff.src = "images/w_photography.gif"
sculptureOn.src = "images/b_sculpture.gif"
sculptureOff.src = "images/w_sculpture.gif"
three_dOn.src = "images/b_3d.gif"
three_dOff.src = "images/w_3d.gif"
filmmakingOn.src = "images/b_filmmaking.gif"
filmmakingOff.src = "images/w_filmmaking.gif"
}
else {
magOn = ""
magOff = ""
prevOn = ""
prevOff = ""
nextOn = ""
nextOff = ""
homeOn = ""
homeOff = ""
aboutOn = ""
aboutOff = ""
contactOn = ""
contactOff = ""
drawingsOn = ""
drawingsOff = ""
paintingsOn = ""
paintingsOff = ""
photographyOn = ""
photographyOff = ""
sculptureOn = ""
sculptureOff = ""
three_dOn = ""
three_dOff = ""
filmmakingOn = ""
filmmakingOff = ""
document.mag = ""
document.prev = ""
document.next = ""
document.home = ""
document.about = ""
document.contact = ""
document.drawings = ""
document.paintings = ""
document.photography = ""
document.sculpture = ""
document.three_d = ""
document.filmmaking = ""
}
// End hiding script from old browsers //-->
</script>
<!--End Script For Rollovers-->
header_menu.htm
<body>
<div id="container">
<div id="header">
<h1>
JUSTIN SNODGRASS
</h1>
</div>
<div id="navigation">
<ul>
<li><a href="index.php">HOME</a></li>
<li><a href="painting_thumbs.php">PAINTING</a></li>
<li><a href="drawing_thumbs.php">DRAWING</a></li>
<li><a href="sculpture_thumbs.php">SCULPTURE</a></li>
<li><a href="bio.php">ABOUT</a></li>
<li><a href="contact.php">CONTACT</a></li>
</ul>
</div>
footer_end.htm
<div id="footer">
Copyright © justinsnodgrass.com, 2011
</div>
</div>
</body>
</html>
Again I am over my head here, but any help would be greatly appreciated. I really don't want to have to scrap my sites over something that might be an easy fix.
Many thanks for any input or advice.