Hello,
I'm just following some php tutorials regarding file access and can't seem to successfully open a file. Here is what I have:
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
$fp = fopen("$DOCUMENT_ROOT/../orders/orders.txt", 'ab');
if(!$fp){
echo '<p>There was a problem with your order, sorry!</p>';
exit;
}
I have an "orders" directory that resides just outside of "/Library/WebServer/Documents/", which is $DOCUMENT_ROOT, is this the correct path?
Thanks,
Jason