AbydosGater Posted November 30, 2006 Share Posted November 30, 2006 Emm hi,Just another noobie question from me,I know that when you require a php file you have to use the short path .. ie: /config.phpBut if your in another directory above where that file is, you cant require using the whole domain duh.. for obvious reasons..But is there an way say if i have my config.php in my top directory, and i want to require it in my /members/... how would i go about doing this?can i use the full path.. ie: /public_html/config.php ??Thanks Quote Link to comment Share on other sites More sharing options...
chipk1 Posted November 30, 2006 Share Posted November 30, 2006 try ../config.php or ../../config.php Quote Link to comment Share on other sites More sharing options...
taith Posted November 30, 2006 Share Posted November 30, 2006 when searching files.... <-- same directory.. <-- back one directory...good thing i remember my dos lol Quote Link to comment Share on other sites More sharing options...
AbydosGater Posted November 30, 2006 Author Share Posted November 30, 2006 ohh and does that mean.. ... <-- back 3? ehh not being smart or anything just wondering does it keep going like that? Quote Link to comment Share on other sites More sharing options...
taith Posted November 30, 2006 Share Posted November 30, 2006 no... only ./..to go back multiple folders you'd use[code]../../images/x.jpg[/code]or the likes :-D Quote Link to comment Share on other sites More sharing options...
AbydosGater Posted November 30, 2006 Author Share Posted November 30, 2006 Ohhhh cool, thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.