Instaler,
You are absolutely right. I did change the ($feof) to (feof), but I have the above HTML problem now.
I did copy my code directely from the notepad, which I am using to write my code, to here if that is what you are wondering. I will copy and paste this code again, the most recent version of it that is.
Thanks you guys
Here is my copied code:
<?php
//create short variable name
$DOCUMENT_ROOT = $HTTP_SERVER_VARS['DOCUMENT_ROOT'];
?>
<html>
<head>
<title>Bob's auto Parts - Customer Orders</title>
</head>
<body>
<h1>Bob's Auto Parts</h1>
<h2>Customer Order</h2>
<?php
$fp = @fopen("$DOCUMENT_ROOT/../orders/orders.txt", 'r');
if(!$fp)
{
echo '<p><strong>No orders pending.'
.'Please try again later.</strong></p></body></html>';
exit;
}
while(!feof($fp))
{
$order = fgets($fp, 999);
echo $order.'<br>';
}
fclose($fp);
?>
</body>
</html>
and here is my output:
Bob's Auto Parts
Customer Order
'; exit; } while(!feof($fp)) { $order = fgets($fp, 999); echo $order.'
'; } fclose($fp); ?>