Jump to content

Accessing My Www Directory From My Subdirectory?


Recommended Posts

I'm trying to make my subdirectory access javascript and php files located on my www directory.The subdirectory:luminary.mysitename.netfiles I need:mysitename.net/js/index.jsandmysitename.net/subdomain/index.phpI've tried $_SERVER["DOCUMENT_ROOT"] but it returned the root of my subdomain ("home/[sitename]/public_html/luminary/subdomain/index.php"). How can I take a step backwards into my www directory and go from there to get files from the subdomain folder and such? ("home/[sitename/public_html/subdoamin/index.php]" I believe).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...