Autor Beitrag
lippi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26



BeitragVerfasst: So 09.03.03 18:01 
hi, ich und kollege wollen ein uptime projekt auf unsere seite einbauen. und zwar wollen wir unter unsereren registrierten benutzer einen uptimekontest machen.

jetzt wollen wir in delphi ein programm schreiben, das die dateien per ftp oder sonst irgendwie hochlädt und dann unser php script die darstellt bei memberinfos.

jetzt meine frage: was schlägt ihr vor zum hochladen, das sollte so alle 10 min geschehen.
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: So 09.03.03 18:27 
Benutzt einen Timer aus der Palette System und die idFTP Komponente aus der Palette Indy-Clients. Dann müsst ihr noch das Interval des Timers auf 600000 setzen. In der Hilfe und hier im Forum ist die Indy-Komponente näher erklärt.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
lippi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26



BeitragVerfasst: So 09.03.03 18:40 
jo, doch ich will wissen ob ftp eine gute methode ist oder ob diese nicht so toll ist... ich müsste ja per ftp eine datei hochschieben.
ich könnte ja auch ein script basteln wo ich mit dem delphi programm ein script auf dem webserver auslöse, das die daten in die mysql db schreibt.

was haltet ihr für sinnvoll?
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: So 09.03.03 18:45 
Schreib doch direkt von einem Delphi Programm in die MySQL Datenbank. Dann benötigst du weder FTP, noch Script.
Mit den ZeosLibs kannst du das direkt machen.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: So 09.03.03 18:57 
Aber nur wenn der Provider eine direkte Verbindung zum SQL-Server zulässt, die meisten verbieten das.

Ich würde es über ein PHP- oder ähnliches Skript machen, das dann von der Applikation aufgerufen wird.
Gruß
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: So 09.03.03 19:00 
Natürlich sofern der Betreiber das zulässt.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
BungeeBug
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 901



BeitragVerfasst: So 09.03.03 20:19 
also die Uptime kann man direkt vom OS bekommen ... aber ich weis nicht wie ... und das mit dem Dateitransfer würde ich auch über nen PHP Script machen ... oder über ne andere selbst gemachte Schnittstelle (geht nur wenn ihr nen Root-Server habt!) ... ach und wenns soweit is sagt mal bescheit ich will gewinnen :P

MfG BungeeBug