andrisp Posted January 24, 2007 Report Share Posted January 24, 2007 Parādi kāds tev tas kods izskatās pilnībā! Link to comment Share on other sites More sharing options...
hoho Posted January 24, 2007 Author Report Share Posted January 24, 2007 nu tagad es meeginu izvadiit jebkaadu testu, tikai failaa, kad lietotaajs submitee formu piemeeram: if ($_POST['btnSubmit']) { header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: public"); header("Content-Description: File Transfer"); header("Content-Type: application/force-download"); $header="Content-Disposition: attachment; filename=izejas_fails.txt;"; header($header ); header("Content-Transfer-Encoding: binary"); echo "Jaukais txt failinsh :))"; } ideja taada, kad vinjsh nospiez pogu, atveeras teksta fails, bet man tas teksts paraadas paarlukprogrammaa un nekas nenotiek ;( Link to comment Share on other sites More sharing options...
andrisp Posted January 24, 2007 Report Share Posted January 24, 2007 Nez, man viss worko. Link to comment Share on other sites More sharing options...
v3rb0 Posted January 24, 2007 Report Share Posted January 24, 2007 apskaties kādus headerus browseris no webserera saņem, tiešām tādus kādus scripts liek sūtīt? Link to comment Share on other sites More sharing options...
GedroX Posted January 25, 2007 Report Share Posted January 25, 2007 Gan jau kā parasti kautkas tiek izvadīts pirms header funkcijām. Visdrīzāk vecais, labais BOM. Link to comment Share on other sites More sharing options...
Recommended Posts