Hi friends,
I don't know how to explain this.
I am confusing when regarding including files.
suppose I have these stuff in my script:
folder1/test1.php
folder2/test2.php
index.php
if I need to include test1.php file to be inside test2.php file, I use this function
require"../folder1/test1.php"; // (correct right???).
if I need to call test2.php to be available in index.php, I use this
require("folder2/test2.php"); // (correct right???).
but the problem it will refuse the first path which we include first.
require"../folder1/test1.php";
bcs "../" means from folder to folder
how can I make all paths readable???