SyntaxFix
Write A Post
Hire A Developer
Questions
You can access the $_SERVER['DOCUMENT_ROOT'] variable :
<?php $path = $_SERVER['DOCUMENT_ROOT']; $path .= "/subdir1/yourdocument.txt"; ?>