Hi,
I am using the Linux Server and server variable $_SERVER["DOCUMENT_R OOT"] to get the root folder to open a text file located in the folder for ex.
fopen($_SERVER["DOCUMENT_R OOT"]."/folder/file.txt","r");
......
I want to use the same scripts to work with Windows Server, Is there any way to get the root folder of the domain installation in Windows?
like it should return c:\www
Could any one suggest me?
Thanks in advance
Sakthi
I am using the Linux Server and server variable $_SERVER["DOCUMENT_R OOT"] to get the root folder to open a text file located in the folder for ex.
fopen($_SERVER["DOCUMENT_R OOT"]."/folder/file.txt","r");
......
I want to use the same scripts to work with Windows Server, Is there any way to get the root folder of the domain installation in Windows?
like it should return c:\www
Could any one suggest me?
Thanks in advance
Sakthi
Comment