Is it possible to access files using:
include(“”);
in a parent directory without using
the entire web address?
I have to edit many of the same files
over and over because I use them
in different directories. If I transfer
to a different domain, I have to go in
and edit everyone of them.
However, if I could access the parent
directory, it would solve this problem.
Example:
[code=php]www.domain.com/config/config.php
is commonly used, yet I need to access it
from a different directory:
/public/index.html …
[code=php]
code…
include(“www.domain.com/config/config.php”);
code…
Couldn’t I use something like:
[code=php]
include(“\config/config.php”)
Which I know does not work, but I’m sure there’s
a way to do it.