Jump to content
php.lv forumi

inports uz text failu


hoho

Recommended Posts

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

×
×
  • Create New...