I'm coding a new app, and I was thinking if it would be a problem if I do includes like this:
include ('../myfile.inc');
Note that I'm using a relative include, instead of giving the full path (for example. 'c:\web\html......').
Suppose that myfile.inc is one directory before the web root. That way, visitors won't be able to get the inc file directly.
Is something wrong with this? I mean it works, but I need to know if it would cause any problems in some situations... and, is it portable from system to system?
I'd appreciate your replies.
Thanks.