This doesn't work.
Here's what I did:
Code:
<?php
require( dirname( __FILE__ ) . '/../joomla.config' );
?>
And I placed joomla.config here: /home2/robertc/
And Joomla is installed here: /home2/robertc/public_html/new/
And when I try to load th site, I get this:
Warning: main(/home2/robertc/public_html/new/../joomla.config) [function.main]: failed to open stream: No such file or directory in /home2/robertc/public_html/new/configuration.php on line 2
Warning: main(/home2/robertc/public_html/new/../joomla.config) [function.main]: failed to open stream: No such file or directory in /home2/robertc/public_html/new/configuration.php on line 2
Fatal error: main() [function.require]: Failed opening required '/home2/robertc/public_html/new/../joomla.config' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/robertc/public_html/new/configuration.php on line 2
So am I not able to do this trick or am I doing something wrong?
edit: Nevermind, I got it to work, it was a permissions issue, couldn't use 400, so I used 404 on both files, is that ok?