The Little Guy Posted June 26, 2007 Share Posted June 26, 2007 how come if I do this: include '..../../news/includes/boxes/news.php'; The code works, But if I do one of these, it doesn't: include '/news/includes/boxes/news.php'; include '../../../news/includes/boxes/news.php'; Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 26, 2007 Share Posted June 26, 2007 i think ./ returns you to the root and ../ move you up 1 level Quote Link to comment Share on other sites More sharing options...
mmarif4u Posted June 26, 2007 Share Posted June 26, 2007 Yes cooldude832 is right. ../ for one level up. ./ back to root. The below code will work but depends on ur directory structure. include '../../../news/includes/boxes/news.php'; Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 26, 2007 Share Posted June 26, 2007 if you having a big issue just revert to the root and go from there Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted June 26, 2007 Author Share Posted June 26, 2007 but what do the four dots before the first slash mean? That is the only thing that works. If I don't have the four dots, it can't find the file Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 26, 2007 Share Posted June 26, 2007 read the error it gives you(if it does) otherwise its probably phrasing ..../ as ../ and moving it up only one level Quote Link to comment Share on other sites More sharing options...
suma237 Posted June 26, 2007 Share Posted June 26, 2007 can you write the tree structure Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted June 26, 2007 Author Share Posted June 26, 2007 The tree is complicated, so here is a diagram: [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
suma237 Posted June 26, 2007 Share Posted June 26, 2007 ebay/news/include... start from the mainfolder 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.