Is there any way to file_put_contents
from different path i mean instead of
c/programfiles/../../htdocs/test.txt using c/test/test.txt
the below is the code i am using:
$date=current_date;
$file = "test_"$date".txt";
$contents = "testtest";
file_put_contents($file, $contents);
Many thanks in advance!