<?php // create short variable name $document_root = $_SERVER['DOCUMENT_ROOT']; ?> <html> <head> <title>Yudz Tech - Order Results</title> </head> <body> <h1>Yudz Technology</h1> <h2>Customer Orders</h2> <?php @ $fp = fopen("orders.txt", 'rb'); flock($fp, LOCK_SH); // lock file for reading if (!$fp){ echo"<p>No orders pending. Please try again later.</p>"; exit; } while(!feof($fp)){ $order = fgets($fp); echo htmlspecialchars($order)."<br />; } flock($fp, LOCK_UN); //release read lock fclose($fp); ?> </body> </html>
Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\yudztech\vieworders.php on line 32
echo htmlspecialchars($order)."<br>;
<title>Yudz Tech - Order Results
<?php // create short variable name $document_root = $_SERVER['DOCUMENT_ROOT']; ?> <title>Yudz Tech - Order Results</title> <h1>Yudz Technology</h1> <h2>Customer Orders</h2> <?php @ $fp = fopen("orders.txt", 'rb'); flock($fp, LOCK_SH); // lock file for reading if (!$fp){ echo"<p>No orders pending. Please try again later.</p>"; exit; } while(!feof($fp)){ $order = fgets($fp); echo htmlspecialchars($order)."<br>; } flock($fp, LOCK_UN); //release read lock fclose($fp); ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)