$reldir=$_GET['reldir']; $name=$_GET['name']; $id="id".mt_rand(0,999); $file = 'temp_file_eshop.csv'; $fh = fopen($file, 'w'); $stringData = $id.",ECU map ".$name.",EUR=20.00,../datafiles/ecumaps/".$reldir.$name.",0,1440"; fwrite($fh, $stringData); fclose($fh); echo "