12-03-2013, 12:52 PM
تم المشروع جزئيا
للتجربة
حمل هذا
http://sourceforge.net/projects/xampp/
ضع ملفات php في C:\xampp\htdocs\exemple_02
افتح phpmyadmin وانشا قاعدة بيانات باسم delphi
تم ارفاق الجداول
هناك نقوصات كثيرة لاكن الفكرة تمت
![[صورة: 20130312124719.png]](http://img259.imageshack.us/img259/6291/20130312124719.png)
ماتم تعديله
![[صورة: 20130312124739.png]](http://img341.imageshack.us/img341/7449/20130312124739.png)
ولارسال امر
للتجربة
حمل هذا
http://sourceforge.net/projects/xampp/
ضع ملفات php في C:\xampp\htdocs\exemple_02
افتح phpmyadmin وانشا قاعدة بيانات باسم delphi
تم ارفاق الجداول
هناك نقوصات كثيرة لاكن الفكرة تمت
![[صورة: 20130312124719.png]](http://img259.imageshack.us/img259/6291/20130312124719.png)
PHP كود :
procedure TForm1.FormCreate(Sender: TObject);
var test:TDynamicSA;
list:TStringList;
begin
test:=split(IdHTTP1.Get('http://127.0.0.1/exemple_02/active.php?cmnd&hdd=123456'),'|');
if Length(test)>0 then begin
if test[0]='MSG' then
MessageBox(0, PWideChar(test[1]), PWideChar(test[2]), +mb_ok);
if test[0]='ACT' then
MessageBox(0, PWideChar(test[1]+' Until '+test[2]), 'WoooW', +mb_ok);
if test[0]='DES' then begin
MessageBox(0, PWideChar('You cannot access because : '+test[2]), PWideChar(test[1]), +mb_ok);
Caption:='<Démo>'
end;
end;
//---------------------
list:=TStringList.Create;
list.Add('add=membre') ;
list.Add('hdd=123456') ;
list.Add('user=delphi') ;
list.Add('windows=win7') ;
list.Add('cntry=USA') ;
IdHTTP1.Post('http://127.0.0.1/exemple_02/active.php',list) ;
list.Free;
end;
ماتم تعديله
- اضافة امر تعمل
- تحديث اخر وقت وصول
- تحديث واضافة امر
- حذف الاوامر والاعضاء
- واشياء اخرى نسيتها...
![[صورة: 20130312124739.png]](http://img341.imageshack.us/img341/7449/20130312124739.png)
ولارسال امر

