A
Anonymous
Guest
Hi alll
do we have a function or something to find the ROOT path ?
My problem is I have some images and file in
two directories [images] and [includes] ...
when I want to call them from the root I can
call them like this :
includes/BlaBla.php
or
images/BlaBla.jpg
but whenever I want to call them from a sub directory
I have to call them like this :
../includes/BlaBla.php
../images/BlaBla.jpg
is there any way to call the ROOT directory and not to use ../
somethig like this :
ROOT/includes/BlaBla.php
ROOT/images/BlaBla.jpg
so I dont have to change my code everytime I create a new sub folder.
Please help me on this
Best regards
Woozy
do we have a function or something to find the ROOT path ?
My problem is I have some images and file in
two directories [images] and [includes] ...
when I want to call them from the root I can
call them like this :
includes/BlaBla.php
or
images/BlaBla.jpg
but whenever I want to call them from a sub directory
I have to call them like this :
../includes/BlaBla.php
../images/BlaBla.jpg
is there any way to call the ROOT directory and not to use ../
somethig like this :
ROOT/includes/BlaBla.php
ROOT/images/BlaBla.jpg
so I dont have to change my code everytime I create a new sub folder.
Please help me on this
Best regards
Woozy