and file open was supposed to be so simple....
$DOCUMENT_ROOT = $HTTP_SERVER_VARS['DOCUMENT_ROOT'];
$fp = fopen("/usr/home/digital/htdocs/test/text.txt", "r");
echo $DOCUMENT_ROOT;
echo ("<p>");
echo $fp;
Results in the folllowing being echoed to the browser:
/usr/home/digital/htdocs
Resource id #2
I have a simple text file am trying to output. Linux/apache. It is called text.txt in the /test directory.