aktuelle.kurse/old_m133/5_Vorlagen-und-Loesungen/Login_A/sep_function.inc.php
Müller Harald 507e5da390 muh
2022-05-13 11:53:50 +02:00

20 lines
421 B
PHP

<?php
// 03.10.12 WAL
// session start
// if you want to read session items call session_start first
// session_start ();
function var_to_log ($par1, $wa) {
static $znr =1;
ob_start();
var_dump($par1);
$dat = ob_get_clean();
$fp = fopen("textfile.txt", $wa);
fwrite($fp, "$znr: ");
fwrite($fp, $dat);
fwrite($fp, "\r\n");
// be careful of the scope from $znr
$znr++;
fclose($fp);
return 0;
}
?>