Annoyed newbie HTTP 500 Internal Server Error
Posted: Thu Jul 01, 2010 5:58 am
Hi guys and gals,
I'm following this tutorial on OOPHP http://www.killerphp.com/tutorials/object-oriented-php/
how come i get an HTTP 500 Internal Server Error when trying to run this code
when i change it to this
It displays "hello" fine.
What am i missing? I'm using 5.2.8.
Ta
S
I'm following this tutorial on OOPHP http://www.killerphp.com/tutorials/object-oriented-php/
how come i get an HTTP 500 Internal Server Error when trying to run this code
Code: Select all
<?php include("class_lib.php"); ?>
</head>
<body>
<?php
$stefan = new person();
$jimmy = new person;
$stefan->set_name("Stefan Mischook");
$jimmy->set_name("Nick Waddles");
echo "Stefan's full name: " . $stefan->get_name();
echo "Nick's full name: " . $jimmy->get_name();
?>
</body>
</html>
Code: Select all
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>OOP in PHP</title>
<?php include ("class_lib.php"); ?>
</head>
<body>
<?php
echo "hello";
?>
</body>
</html>What am i missing? I'm using 5.2.8.
Ta
S