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

[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]

I also tried this <td>&lt;?php echo $_SERVER["DOCUMENT_ROOT"] . '/application/config/database.php'; ?&gt;</td> but did not pick up the project folder in my xampp.

C:/xampp/htdocs/application/config/config.php

trying to get it

C:/xampp/htdocs/codeigniter/application/config/config.php


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



Theme © iAndrew 2016 - Forum software by © MyBB