Posted by:
IanPSwift
(---.hsd1.il.comcast.net)
I'm trying to learn PHP and MySQL from a book, and it recommended I use this for an all-in-one system. When I load the localhost page everything is fine, I get a nice WampServer page listing the various versions of my software. However, when I load localhost/today.php I get a Server Error and the following message.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.
This was the first code from the book, and I placed the file in the C:/wamp/www subdirectory.
I've posted the code I wrote in case that helps. I need to learn this for a job, so any help would be greatly appreciated.
Code:
<!DOCTYPE html PUBLIC "-//W3C/DTD XHTML 1.0 Strict//EN"
"[
www.w3.org];
<html xmlns="htttp://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Today's Date</title>
<meta http=equiv="content-type"
content="text/html; charset=utf-8"/>
</head>
<body>
<p>Today's date (according to this web server is
<?php
echo date('1, F ds Y.)
?>
</p>
</body>
</html>