path - Location of PHP class -
a php newbie question. trying make first web page using php class navigation , php including html files - trying efficient. works fine @ top of directory structure don't know how make work in sub-folders.
the (linux) server fileshare , have access root folder www folder serving web pages.
i have trawled site , web confused how specify path php , class files included in each page.
i know basic php old (well, 60) , learning getting harder.
the efficient way suggested jeremy miller in comment, use of variable indicating root folder (absolute path), , referring each time. otherwise, should know "../path"
notation indicates parent folder in php, , can use multiple times traverse tree: "../../path"
, on.
Comments
Post a Comment