php - reading a file in another directory?

Bob R.

New member
Im working on a website and the directories go like this:

root -> a -> b -> c -> d -> e.txt

If im in directory c working on a file and want to read a file in directory b, what would be the file name? Would

$filename = "/a/b/c/d/e.txt"

be correct?
 
Back
Top