Welcome Guest, Not a member yet? Register   Sign In
[Solved] How to pick up main application folder from another directory.
#4

[eluser]riwakawd[/eluser]
[quote author="Tim Brownlaw" date="1400326802"]So if you only want to wonder up one level

One way is to use dirname(FCPATH); instead of FCPATH!
That'll take you up One Level and remember that it is a path!

But you'd could also use dirname(__FILE__) and create a new define based upon that...
You could also use str_replace to replace the "install/" with nothing, thus removing it...

As you can see, there are various ways.

[/quote]

Your way worked thanks so much.

Code:
<tr>
<td>&lt;?php echo dirname(FCPATH) . '/application/config/config.php'; ?&gt;</td>
<td class="align_right">&lt;?php echo is_writable(dirname(FCPATH) . '/application/config/config.php') ? '<span class="text-success">Writable</span>' : '<span class="text-danger">Unwritable</span>'; ?&gt;</td>
</tr>


Messages In This Thread
[Solved] How to pick up main application folder from another directory. - by El Forum - 05-17-2014, 05:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB