Autor Beitrag
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 26.05.03 14:45 
Hi

Ich downloade eine mit php dynamisch erzeugte ini-Datei. Wenn ich mir die im "Quellcode anzeigen" vom IE anschau, gehen die Zeilenumbrüche auch perfekt. Aber sobald ich sie mit URLDownloadToFile downgelodet únd gespeichert habe sind es nur noch so rechtecke. Warum? :?
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Mo 26.05.03 16:39 
Wie gibst du denn mit PHP die Datei an den Browser weiter? Es könnte reine Standardtoleranz sein, daß es im Browser richtig angezeigt wird, in der Datei, die vermutlich direkt gespeichert wird aber nicht.
Du müsstest diverse Header senden, tust du das auch?

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
Moritz M. Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 26.05.03 17:03 
ne, welche muss ich denn senden?
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Mo 26.05.03 18:24 
Also normalerweise musst du zumindest "Content-Type: text/plain" schicken, und zwar als HTTP-Header. Das geht mit der header()-Funktion von PHP.

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
Moritz M. Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 26.05.03 18:27 
Das geht nicht. Da kommt das gleiche raus.
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Mo 26.05.03 18:38 
Dann probier' zusätzlich mal noch "Content-Transfer-Encoding: binary".
Wenn das auch nicht hilft, weiß ich auch nicht, woran's liegen könnte, außer an der Art und Weise, wie du die Datei ausgibst und an der Funktion, die das Teil runterlädt (ich vermute aus einem Delphi-Programm heraus?).

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
Moritz M. Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 26.05.03 18:40 
Nein, es geht nicht :-(