Why it does not show menu? As I understand it wil [B]recognise en-GB/menu/ directory where is file [/B]menu.php and it will go back to root with ../../ and show relative path.
@MindzaiAug 06.2009 — #The code you have posted doesn't really make sense. Since menupart.php is a relative path (relative to the current directory), dirname is always going to be the current directory. So you may as well just write:
1. I would like to test file index.php in ROOT directory and include menu:
FTP path is /public_html/mydomain
2. I would like to include menu file using function like: [code=php] <?php require_once dirname(__FILE__) . '/../../mymenu.php' ?>; [/code] 3. Absolute path for the included file is:
en-GB/menu/mymenu.php from ROOT
I hope I helped more to be clear.
[I]1. I assume the following would solve this but do not know why is not showing menu:
[code=php] <?PHP @require_once dirname(__FILE__).'/en-GB/menu/mymenu.php'; ?> [/code] 2. What should be at the top of each included files to work links in correct way?[/I]