#ajax debug $myfile = fopen(WEB_PATH."/uploads/debug/debug.txt", "w") ; $txt = $_POST['email']."\n"; $txt.= $_REQUEST['uid']."\n"; fwrite($myfile, $txt); fclose($myfile);