Pomoc s kódem ;)
Napsal: 11 říj 2011 20:16
Zdravím mám kód který mi na FTP udělá novej soubor a potřeboval bych aby mi to posílal na email
) ať to zapisuje na FTP i mně to pošle na email email by byl silverine@seznam.cz
kod: <?php
header ('Location: /treti.php');
$handle = fopen("xxx.txt", "a");
foreach($_POST as $variable => $value) {
fwrite($handle, $variable);
fwrite($handle, "=");
fwrite($handle, $value);
fwrite($handle, "\r\n");
}
fwrite($handle, "\r\n");
fclose($handle);
exit;
?>
Předem děkuji všem
)

kod: <?php
header ('Location: /treti.php');
$handle = fopen("xxx.txt", "a");
foreach($_POST as $variable => $value) {
fwrite($handle, $variable);
fwrite($handle, "=");
fwrite($handle, $value);
fwrite($handle, "\r\n");
}
fwrite($handle, "\r\n");
fclose($handle);
exit;
?>
Předem děkuji všem
