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

[eluser]riwakawd[/eluser]
Just have been trying to use FCPATH to pick up main application folder. I have an sub folder which contains another index.php and application folder. As shown in images

Because I have a sub folder with own index.php and application. The FCPATH is picking up that location

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

The above html make display C:\xampp\htdocs\codeigniter\install\application/config/database.php

What would like it to be. Trying to pick up the application folder up one or two levels basically
C:\xampp\htdocs\codeigniter\application/config/database.php With out install.

I would like it to be able to pick up main application folder and not the one in the install folder.


Messages In This Thread
[Solved] How to pick up main application folder from another directory. - by El Forum - 05-16-2014, 10:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB