I have read the phpManual about fopen() twice, but it does not help me with my question.
I am reading this php, MySql Web Development book, and here is what it says:
//to copy the long-style variable to the short-style name.(this first line I understand)
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
$fp = fopen("$DOCUMENT_ROOT/../orders/orders.txt", 'w'); //It is this line that I have a problem with.
They don't explain nothing about what a "DOCUMENT_ROOT" is. Is this a real directory on my computer or a made up one by the book. I did a search and I didn't find anything on my computer.
How do I create relative path? This is what the above line suppose to create.
please give me an example.
I understand that the first line assigns a server object ,the DOCUMENT_ROOT (whatever that is?) to a variable called $DOCUMENT_ROOT. Am I correct?
thanks for looking
masood