Welcome Guest, Not a member yet? Register   Sign In
how to reference file one folder up and down?
#2

(07-04-2016, 02:47 PM)mrad Wrote: I am trying to reference a file one folder up and then down a few folders:



PHP Code:
include "../common/KoolControls/KoolGrid/koolgrid.php"

But this does not work, when the 'include' is in the file views/actors (see above)

Can anyone enlight me?

Thanks in advance.

Try this
PHP Code:
$path rtrim(__DIR__'/') . '/';
$path .= "../common/KoolControls/KoolGrid/koolgrid.php";
include 
$path
Reply


Messages In This Thread
RE: how to reference file one folder up and down? - by pdthinh - 07-04-2016, 09:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB