can someone tell me what's wrong with my code?My instructions say that i dont need to add any html elements to this document since it wont display in the web browser but i dont know what to do. Here's what i have:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xtml1-strict.dtd">
<html xmlns= "http://www.w3.org/1999/xhtml">
<html>
<?php
if (file_exists("messages.txt")
&& filesize("messages.txt") != 0) {
$MessageArray = file("messages.txt");
array_shift($MessageArray);
$NewMessages = implode($MessageArray);
$MessageStore = fopen("messages.txt", "w");
fwrite($MessageStore, "$NewMessages");
fclose($MessageStore);
}
header("location:ViewDiscussion.php");
?>
</html>