Correct coding when parent path is disabled
I've moved from a dedicated server to a shared platform and now my includes for database connections don't work. I have lines like this:
<!--#include file="../connection.asp") -->
I've tried replacing it with all of these:
<!--#include file="/connection.asp") -->
<!--#include file="http://mywebsite.com/connection.asp") -->
<!--#include file=<%Server.MapPath("connection.asp")%> -->
- but nothing works. How can I reference a file in a different folder?
Grateful thanks for any help.