$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT']; $fp = fopen($DOCUMENT_ROOT.'/aaa.txt','a'); fwrite($fp,'---into notify ---'); fclose($fp);