Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Accessing Files Outside Of Document Root
Hello there. I wish to access files outside the document root. Just for simplicity we'll say the files are located local in "C:/files" and that the file i want is "file.txt" in the same folder.
I understand that I'm supposed to use "Alias" in my apache "httpd.conf" file, however I'm not sure how to write this code. Also I'm not sure how to write the link to the file.
This is what I tried
And the link would look like
Obviosly I guessed wrong since my apache server wouldn't even start after this change. Please help me. Thank you.
So I asked my tutor how to do this and he replied that It's possible using php. So I'll try that. However what does "Alias" do? and how to use it?
0 · ·