Thank youi in advance:
I am trying to write (append) to a file in a sub directory.
the file does exist.
1.
the code below does not return an error.
2.
My host has made sure I have write permission on the
directory.
Any ideas?
$outputstring = $date
."\t".$tireqty ." tires \t"
. $oilqty ." oil \t"
. $sparkqty ." spark plugs \t"
. " \$" . $total ."\t"
. $address."\n";
/******** open file for appending ********/
$fp = fopen("http://www.geodegroup.com/php/lesson2/orders/orders.txt", "a");
if (!$fp)
{
echo "<p><strong> Your order could not be processed at this time.</strong></p>";
exit;
}
Else
{
fwrite($fp, $outputstring);
fclose($fp);
echo "<p>Order written.</p>";
}
😕