I've been developing a small PHP project on my localhost, and in order to do so, I set up an auto_prepend_file
in the .htaccess file. When I moved this project on to a server, to make it live, I was greeted with an Internal Server Error.
It appears that the file path that I use to get to my desired prepend file is wrong, and I've tried every possible solution that I can think of.
I even made a new page and cleared the htaccess file, so I could echo $_SERVER['DOCUMENT_ROOT'];
and it still wouldn't work when I used the absolute path.
So my question for you is: Is there a way, as far as you know, to grab the current directory, that the htaccess file resides in, and then concatenate the file name on to the end of it, and call it in the auto_prepend_file
statement?
I am very new to htaccess stuff, so bear this in mind please, I really don't know much about it.