Created
June 2, 2015 07:21
-
-
Save komagata/2b0c2a5c5be54faf461e to your computer and use it in GitHub Desktop.
docroot hack for VirtualDocumentRoot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$_SERVER['DOCUMENT_ROOT'] = str_replace($_SERVER['SCRIPT_NAME'], '', $_SERVER['SCRIPT_FILENAME']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment