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

[eluser]Tim Brownlaw[/eluser]
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.



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



Theme © iAndrew 2016 - Forum software by © MyBB