Autor Beitrag
Ironhead
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57

Win XP,Kanotix 5

BeitragVerfasst: Mo 10.07.06 10:50 
Nun, ich hab da ne ini Datei auf meinem Server, wo Benutzernamen drin stehen.
in einem Formular soll der Anwender seinen Benutzernamen eingeben, der Name soll mit der ini Datei auf dem Server verglichen werden und dann eine entsprechende Aktion auführen.

Mein Problem iss nun, wie bekomme ich das hin das das Prog sich mit dem Server verbindet und die ini Datei ausliest.
Wie ich eine ini Datei lese die aufm Rechner erstellt wird weis ich, aber das mit dem Server, bekomm ich nich hin

Hab schon was von den Indy und so gehört, aber irgendwie blicke ich da net durch.

Kann mir vielleicht einer ne gute Methode sagen mit welchen Komponenten ich das hinbekomme
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mo 10.07.06 10:59 
Moin!

user profile iconIronhead hat folgendes geschrieben:
Nun, ich hab da ne ini Datei auf meinem Server

Genau da solltest du etwas mehr drüber sagen: was ist das für ein Server, wie kann man ihn erreichen? Im LAN per Freigabe, nur per Internet, nur HTTP oder auch andere Protokolle möglich, welches OS? etc. pp. ;)

Ich denke, ohne ausführlichere Infos darüber können wir dir nur schlecht was empfehlen.

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Ironhead Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57

Win XP,Kanotix 5

BeitragVerfasst: Mo 10.07.06 11:03 
Tschuldige, Das iss ein Internet Server wie z.B. funpic.de, ich will auf diesen Server die ini Datei speichern und laden.
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mo 10.07.06 11:07 
Moin!

Dann scheint mir die einfachste Lösung zu sein: Mach einen Download in eine lokale Datei, die kannst du dann ganz einfach mit den bekannten Methoden bearbeiten. Wenn du damit fertig bist, löscht du die Datei einfach wieder). Das ganze geht mit Suche in: Delphi-Forum, Delphi-Library URLDOWNLOADTOFILE, da brauchste keine Indies für. ;)

Alternativ (wenn du keine Datei erzeugen willst), gibt es davon auch eine Stream-Variante (mal nach Suche in: Delphi-Forum, Delphi-Library URLMON suchen). Zusammen mit TMemIniFile sollte das auch nur im Speicher machbar sein, ist aber schon nicht mehr ganz so simpel.

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Ironhead Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57

Win XP,Kanotix 5

BeitragVerfasst: Mo 10.07.06 11:09 
Danke erstmal, werd über die Sache mal hirnen.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mo 10.07.06 11:25 
Ist sicher eine einfache Lösung, aber wenn du in der Datei noch mehr Infos drin hast (Admin-Passwort o.ä.), kann das ein Sicherheitsproblem werden!
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mo 10.07.06 11:26 
Moin!

Ähm, hmm, das da:
user profile iconIronhead hat folgendes geschrieben:
Das iss ein Internet Server wie z.B. funpic.de, ich will auf diesen Server die ini Datei speichern und laden.

könnte allerdings ein Problem darstellen, weil du per HTTP die Datei nicht "speichern" kannst (jedenfalls nicht ohne eine serverseitige (z.B. PHP-)"Krücke") und dann z.B. auf FTP ausweichen müßtest.

Fazit: das mit dem Speichern könnte schwer werden. :?

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Ironhead Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57

Win XP,Kanotix 5

BeitragVerfasst: Mo 10.07.06 11:29 
Na das mit dem Speichern würd ich ev. manuell machen, mir ging nur um das auslesen