Autor Beitrag
breakdancer1111
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 148

Windows 7 Home Premium 64Bit
Delphi XE2 Starter
BeitragVerfasst: Do 26.08.04 13:25 
Hallo,
ich habe mir ein Php Script gebaut mit dem man sich für einen(von einem Kumpel) Chat
Regestrieren kann. Nun wollt ich mal wissen, ob es eine möglichkeit gibt den Script
über Delphi laufen zulassen. Also dass man Edit Felder ausfüllt und das dann irgendwie
mit dem Php Script verbindet. Oder gibt es eine bessere/leichtere möglichkeit?
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Do 26.08.04 14:16 
mit der IdHTTP Komponente von indy kann man seietn aufrufen,w enn du das meinst :roll_

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
FAlter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 192

Win XP Home
Turbo Delphi 2006 (Win32), C# (VS 2008 Prof.), Java (Eclipse), PHP
BeitragVerfasst: Do 26.08.04 15:52 
Ich denke mal eher, er möchte das PHP-Script ohne einen Server ausführen.

Probiers mal mit der PHP.EXE. Die ist gut dokumentiert für Kommandozeilen-PHP.

Einfach die Ausgabe umleiten an dein Programm.

(Leider nutzt mir das nichts, da dort Informationen wie Content-Type etc. nicht übergeben werden. Dazu kannst du PHP-CGI.EXE nehmen, was wiederum schlecht dokumentiert ist, und die normale CGI-Art, Postdaten von SDTIN und CONTENT_LENGTH zu lesen, scheint nicht zu funktionieren.)
breakdancer1111 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 148

Windows 7 Home Premium 64Bit
Delphi XE2 Starter
BeitragVerfasst: Do 26.08.04 17:04 
Doch darf ruhig auf nem Server sein die Php Datei.
Wie würde das den mit dem idHttp funktionieren?
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Do 26.08.04 19:44 
ausblenden Beispiel
1:
idHTTP1.Get('http://www.delphi-forum.de/index.php');					

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
breakdancer1111 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 148

Windows 7 Home Premium 64Bit
Delphi XE2 Starter
BeitragVerfasst: Fr 27.08.04 11:36 
Also ich hab da jetzt nen Button auf den man drauf klickt und das was du da hingeschrieben hast.

Wenn man auf den Button klickt passiert nix. :(
r4id3n
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 115

Win XP Home, Win XP Pro
D6 Prof, D7 Ent, K3 Ent
BeitragVerfasst: Fr 27.08.04 14:16 
die get funktion gibt dir den "text" der antwortseite zurück, da kann auch nix passieren! :D
breakdancer1111 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 148

Windows 7 Home Premium 64Bit
Delphi XE2 Starter
BeitragVerfasst: Fr 27.08.04 15:22 
Achso :) aber was bringt mir der Text in ner Memo?! Sorry,
aber immoment blick ich das ganze noch nicht so ganz.
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Fr 27.08.04 20:46 
das ist die Ausgabe deines PHP Codes...

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)