Path grammar in index.php

This one is a basic concept that I am not very clear in index.php file:


// change the following paths if necessary

$yii=dirname(__FILE__).'/../../framework/yii.php';

$config=dirname(__FILE__).'/protected/config/main.php';

the dirname() function return the string of directory of index.php file. But what does ‘/../../framework/yii.php’ mean?

Is it 3 level down or up the path? Where can I find the full reference of this expression ‘/../../’?

Thank you!

The expression "…" stands for "parent directory".




$yii=dirname(__FILE__).'/../../framework/yii.php';



This means 2 level up and then down to "framework" directory.

Wikipedia - Path (computing)

Thanks a lot!!