I cannot locate the file even when using multiple ../
to find the file:
root -> public -> secure -> lock -> login / "data.php"
panel -> data -> list / "list.php"
I want to include data.php
with my list.php
and tried doing the following to include the data:
include("../../../../lock/login/data.php");
include("../../../lock/login/data.php");
and also
include("../../lock/login/data.php");
However, this doesn't seem to work, but if I place it beside list.php
and do the following, it reads the data just fine:
include("data.php");
What am I doing wrong with my code and what is a better way to execute this?