Log In · Register

 
php is giving me 500 error
Maccabee
post Aug 29 2009, 06:17 PM
Post #1


Senior Member
*******

Group: Official Designer
Posts: 5,880
Joined: Nov 2007
Member No: 593,382



Im not sure why, but the php isnt working on my site. the other php page son my site are working but this page isnt if I name it index.html it works but not index.php. It shows the 500 error. But php displays html just like html pages do.

So whats wrong? its at josephbcohen.com. Ill be trying to fix it.
 
 
Start new topic
Replies
Maccabee
post Aug 29 2009, 11:37 PM
Post #2


Senior Member
*******

Group: Official Designer
Posts: 5,880
Joined: Nov 2007
Member No: 593,382



Should I show you the index.php code and the includes?
Well i will...

index.php:
CODE
<?php $title = "Joseph Cohen";
$description = "The website of Freelancer, Joseph Cohen.";
$keywords = "Joseph, Cohen, Joseph Cohen, Freelance, web, graphic, design, programming, social, jewsih, teenager";
include("includes/header.php");
?>
<center><br><br><br><img src="images/splash.png">
<br><a style="cursor:default;" href="#"><img border="0" src="images/noenter.png"></a></center>

<?php include("includes/footer.php"); ?>


header.php:
CODE
<!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" xml:lang="en" lang="en">

<head>

<title><?php echo $title; ?></title>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<meta name="description" content="<?php echo $description ?>" />

<meta name="keywords" content="<?php echo $keywords ?>" />

<link rel="shortcut icon" href="/images/favicon.ico" />

<link rel="stylesheet" type="text/css" href="/stylesheet.css" />

</head>

<body>


footer.php:
CODE
</body></html>
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: