Hi,
I'm using PHP DESIGNER 2007, ver. 5.4. When I'm compiling the code below it appears PHP notice. Please, correct it so that it does not appears. Thank you in advance.
<?php
//create short variable name
$DOCUMENT_ROOT = $HTTP_SERVER_VARS['DOCUMENT_ROOT'];// PHP Notice:
//undefined variable: HTTP_SERVER_VARS
$orders= file("$DOCUMENT_ROOT/../orders/orders.txt");
$number_of_orders = count($orders);
if ($number_of_orders == 0)
{
echo '<p><strong>No orders pending.
Please try again later.</strong></p>';
}
for ($i=0; $i<$number_of_orders; $i++)
{
echo $orders[$i].'<br />';
}
?>