well i thought i had it, it didnt work so i even tried something very very simple
$file = 'aaad_r.txt'; //this should put it at the very top of the file names(easy find)
$current = "hello there\n";
i even created the file name first and ran this and the file is empty
checked every dir all the way back to the root and no file.