Files you have saved to course folders are accessible from the web. You can view these files directly by opening up the file from within your browser (using File Open...). Opening these files "via the web" uses the server and will run any server side code.
It is recommended that you view your code via the URL.