I am trying to use $_SERVER['DOCUMENT_ROOT']; but I get the following error:
Notice: Undefined index: DOCUMENT_ROOT in c:\inetpub\wwwroot\hkp\Test2.php on line 10
I am using IIS on my XP Pro machine.
Here is the entire program: (Can anyone tell me what I am doing wrong?)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<?php
echo $_SERVER['DOCUMENT_ROOT'];
?>
</body>
</html>