Hallo!
Meine Qellcode sieht im Moment noch so aus, dass nach fertigem Schrieben einer CSV Datei ein Download-Fesnter kommt.
	
Jetzt möchte ich aber, dass nach fertigem Erstellen der CSV, diese automatisch in einem Ordner gespeichert wird. Leider funktioniert das so nicht, kann mir da jemand helfen woran das vielleicht leigen könnte?
	
							
						
					Meine Qellcode sieht im Moment noch so aus, dass nach fertigem Schrieben einer CSV Datei ein Download-Fesnter kommt.
PHP Code:
	
	
$handle = fopen ($csvurl,"r");
header('Content-Type: text/plain');
        header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT');
        header('Content-Disposition: attachment; filename=finished/finished.csv');
        header('Pragma: no-cache');
        echo 'Bezeichnung;Haus;Wohung;Garten;Marktpreis;Billigster Preis;Stadt;'."\n";
 
         foreach($csvdaten as $v1 => $value1) {
            foreach ($value1 as $v2) {
                echo $v2.";";
        
                }
                echo "\n";    
            }
        } 
PHP Code:
	
	
$handle = fopen ($csvurl,"r");
foreach($csvdaten as $v1 => $value1) {
            foreach ($value1 as $v2) {
                fputcsv($handle,split(';',$v2));
        
                }
            } 
 
          

Comment