Created
May 4, 2013 16:20
-
-
Save joeworkman/5517978 to your computer and use it in GitHub Desktop.
GoDaddy has some `interesting` server setups. When developing PHP to be used across many hosts, DOCUMENT_ROOT is commonly used. Sadly GoDaddy makes things difficult. Here is the fix.
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 | |
| if (!empty($_SERVER['SUBDOMAIN_DOCUMENT_ROOT'])) { | |
| #GoDaddy Hackery | |
| $_SERVER['DOCUMENT_ROOT'] = $_SERVER['SUBDOMAIN_DOCUMENT_ROOT']; | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you. You helped me.