Answer the question
In order to leave comments, you need to log in
How to write the correct path?
I have the path site\protected\commands\file.php
I need to find the folder relative to the script being run
site\media\data
I managed to go up 2 levels, but now how do I go to media\data?dirname(__FILE__) . '/../../'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question