Answer the question
In order to leave comments, you need to log in
Different path depending on the method to run the script?
If I run the file through a browser (routing works, it does not open directly), then a path is needed to access the configuration file: $dir = '../../folder/config.php';
If I run the file through cron, then in order for the configuration file to be picked up, I have to specify a completely different path:
$dir = '../user/web/domain.ru/folder/config.php';
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