$fp = fopen("test.doc", 'w+'); $str = "A sample printing - Juden Nobleza"; fwrite($fp, $str); fclose($fp); echo "Test OK. Download me."; ?>