Talk:Moving sensitive files outside the web root
From Joomla! Documentation
Hi there, on my system, but I think on all, if you use:
require( dirname( __FILE__ ) . '/../design2-files/joomla.conf' );
you obtain:
/home/users/myuser/mydomain/public_html/../design2-files/joomla.conf
I mean, if you only add two strings, you don't obtain an "up" redirection. "../" can only be used at the beginning of the string...