Howdy... 😉
I think I have path problem... 🙁
Okay... Let me try to explain the situation...
I have a directory and file in it that I need to access throughout my codes...
root/mods/ip2c
and the file that I am trying to access in that directory is called...
ip2c.inc
In that ip2c.inc file, there is one line like this...
$crdr='../../mods/ip2c';
I have another file right here...
root/images/sig/sig.php
In this file, I have one line that includes previous file...
include("../../mods/ip2c/ip2c.inc");
With that setup, I am able to access the variables from the ip2c.inc file with no problem...
Now, I want to call that ip2c.inc again from the root directory and I am having problem... 🙁 (I have tried to do the same thing but I was not able to make it working...)
I have one file right here...
root/view.php
I have added this line at the beginning of the file...
include("./mods/ip2c/ip2c.inc");
And, just by adding that line, I get to see the script freezing there and doing nothing... I don't even get any error message...
I think that's happening because of the $crdr variable in the ip2c.inc file that cannot find the right directory to execute the codes in that file...
I've tried to set the $crdr variable to this, but that just made sig.php file not working... Actually both files not working with this full path... 🙁
$crdr='/home/forum/public_html/mods/ip2c';
Can somebody give me some help on this???
Thank you very much... 😉