hvad i den lede helved mener den
jeg for et script warning der ser sådan her udWarning: fopen("/../orders/orders.txt", "W") - No error in c:\programmer\apache group\apache\htdocs\my_home\processorder.php on line 10
mit script ser sådan her ud
<html>
<head>
<title>bob´s auto part order results</title>
</head>
<body>
<center>
<h1>bob´s auto parts</h1>
<h2>order result</h2>
<?
$fp= fopen("$document_root/../orders/orders.txt","W");
$tm= $tireqty+ $oilqty+$sparkqty;
if ($tm==0)
{
echo"<font color=red>";
echo" you did not order anything on the priviose page!<br>";
echo"</font>";
}
else
{
echo "<P> order processed.";
echo date("H:i, jS F Y");
echo "<br>";
echo "your order is as follows";
echo "<br>";
}
if ($tireqty>0)
echo $tireqty." tires <br>";
if($oilqty>0)
echo $oilqty." bottel of oil <br>";
if($sparkqty>0)
echo $sparkqty." spark plugs <br>";
define ("TIRERPRICE",100);
define("OILPRICE",10);
define("SPARKPRICE",4);
$tprice=TIRERPRICE *$tireqty;
$oprice=$oilqty * OILPRICE;
$sprice=$sparkqty * SPARKPRICE;
echo"<p>";
echo "price of tires is ";
echo $tprice;
echo"<br>";
echo "price of oile is ";
echo $oprice;
echo "<br>";
echo "price of sparks is ";
echo $sprice;
echo "<P>";
echo "pris ialt ";
echo $tprice + $oprice +$sprice;
echo "<br>";
echo "price whit moms ";
$total = $tprice + $oprice +$sprice;
$totalm = $total * 1.25;
echo $totalm;
echo"<p> du har bestilt pices $tm of goods";
echo "<P>";
switch($find)
{
case "a":
echo"<p>regular custormr";
break;
case "b":
echo"customer referred by tv advert";
break;
case "c":
echo" customer referred by phone directory";
break;
case "d":
echo"customer referred by word if mouth";
break;
default:
echo"we do not know how this customer found os";
break;
}
?>
</center>
</body>
