I know by default you can not use an absolute path when using fopen and mkdir, but in my case I really need to specify the exact location of the files/directories.
I KNOW there must be some workaround way to do this... does anyone know how?
For example, here is what I am using now:
$path = "../../logs/".date("Y")."/".date("m");
$filename = date("M.d.Y").".txt";
$openfile = fopen($path."/".$filename, 'a');
fwrite($openfile, $logcontent);
fclose($openfile);
This is working, but I need to do something like:
$path = "http://www.mydomain.com/logs/".date("Y")."/".date("m");
ANY help would be greatly appreciated!!