Scenario: Developing on hosted server, htaccess = Basic Auth, allow_url_fopen = on
Problem: When I include files with their url location, my htaccess blocks the include and returns a 401 error.
Known solutions: relative path (../), $_SERVER['DOCUMENT_ROOT'].
Question: Is there another way? I'd like to keep the url, if possible, in this scenario. Also, I'm using an include file for my footers, should I use tpl instead (I know nothing about tpl)?
EDIT: I'm currently making a mess of my folder structure. I have example.com and secure.example.com (where the ssl is installed). So in my secure folder I want to include files from the root. I thought it might be easier if I used the URL because the 'document_root' call only takes me to the secure folder (not root), and if I move a file the relative path may not work.