Files and PHP... question
Posted: Wed Oct 24, 2007 12:42 pm
Ok, I'm really confused on how level of files work in PHP in folders...
Such as... lets say I have a file in a folder one level below the current folder my script is running in... how do I get to the folder below me?
require("../folder_below/file.php"); // Would this work?
Also, I noticed phpBB uses phpbb_root_path for ever file requirement it does, I'd like to use that, and I tried... but my server just tells me nothing is there you idiot.
Basically, what is the difference between './' and '../' and what are easy ways to get to folders throughout my server?
Thankies =)

Such as... lets say I have a file in a folder one level below the current folder my script is running in... how do I get to the folder below me?
require("../folder_below/file.php"); // Would this work?
Also, I noticed phpBB uses phpbb_root_path for ever file requirement it does, I'd like to use that, and I tried... but my server just tells me nothing is there you idiot.
Basically, what is the difference between './' and '../' and what are easy ways to get to folders throughout my server?
Thankies =)