I have some problems with the relative and absolute paths in php fopen. I have the following directories:
project:
scripts:
myscript.php
logs:
mylog.log
I want to open mylog.log
from myscript.php
and I don't know how to specify the path. I tried
fopen('../logs/mylog.log', "a")
but it won't work. Thanks.
LE: Thanks for you answers.