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



BeitragVerfasst: Mo 29.09.03 15:07 
Hallo

Ich habe vor, einen eigenen kleinen mySQL-Server zu programmieren. Jedoch weiß ich noch überhaupt nicht, wie ich das realisieren soll und wie das mySQL - Protokoll funktioniert.
Kann mir da wer weiterhelfen?

Gruß

P.S.: Bzw. weiß irgendwer, ob man eine in PHP deklarierte FUnktion neu schreiben kann, also überschreiben?
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Mo 29.09.03 16:15 
Wie stellst du dir das vor :?:

ausblenden Delphi-Quelltext
1:
myServer := TmySQLServer.create;					

also...mit einer fremden compo oder code?

oder willst du alles selbst neu schreiben :D ...wenn ja solltest du dir die nächsten 10 jahre frei halten *g* ..is nämlich nicht ganz trivial :wink: Nicht umsonst is das ein grosses open-source projekt, wo hunderttausende mann-stunden verbraten werden.


oder hab ich dich falsch verstanden?

_________________
mfg.
mâximôv
Moritz M. Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 29.09.03 16:19 
Hallo

Nein, ich will nur einen kleinen Grundsatzserver machen. Das Zeil ist es, das mein Programm die Befehle von php/perl bekommt, dann mit einem PHP-Script auf einem Server kommuniziert, und so den Zugirff auf eine Datenbank freigibt, die eigentlich nicht für draußen gedacht ist. Ich brauche soetwas z.B. bei meiner HP-Entwicklung.

Onz, also nur Grunsatzbefehle wie connect, select_db, und query.
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Mo 29.09.03 16:45 
aha...aber dafür brauchst du doch nicht extra einen server proggen.

du kannst befehle als string an das script schicken und mit...

eval(string code_str);...dann von PHP ausführen lassen :wink: du musst dann nur noch die query daten in das html reinformatieren und zuhause dann interpretieren...oder so...

mfg

_________________
mfg.
mâximôv
Moritz M. Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 29.09.03 17:01 
Hallo

Das war mir auch klar. Aber ich wollte, das man den Befehl nicht ändern muss. Und deswegen auch die Frage, ob man die mysql_connect-Funtkion überschreiben kann.

Blast! Onz
UC-Chewie
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 531

WinXP
D5 Ent
BeitragVerfasst: Mo 29.09.03 17:09 
Mit anderen Worten, du willst wissen, welche Daten z.B. bei mysql_connect() verschickt werden?

_________________
Egal wie dumm man selbst ist, es gibt immer andere, die noch dümmer sind
Moritz M. Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 29.09.03 17:12 
Genau, und bei mysql_select_db, mysql_query, mysql_fetch_object genauso
Jeremy
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 99

Fedora Core 1
K3 Ent
BeitragVerfasst: Mi 15.10.03 20:06 
Titel: mysql
wenn du sehen willst wie die php funktionen funktionieren schau doch mal die source on
[url]
www.php.net
[/url]
dann weißt du alles

_________________
Jede ende hat ne anfang genau wie umgekehrt und windows ist der teurste mull den man kaufen kann!!!
maze2k
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 252

WIN 95, WIN NT 4.0, WIN 98, WIN 98SE, WIN 2000, RedHat Linux 7.3, Mandrake Linux 9.2, Knoppix Linux 3.3
D6 Pers
BeitragVerfasst: Mi 15.10.03 20:10 
Warum nimmst nicht einfach ne kleine MySQL-Kompo und schreibst die nach deinen bedürfnissen um?

_________________
Wer das Konzept der Unendlichkeit verstehen will, muss nur das Ausmaß menschlicher Dummheit betrachten. (Voltaire)