Autor Beitrag
Philipp_Reitter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: So 03.12.06 12:53 
HI

ich hab schon oft was mit PHP gemacht aber nie so was:

ich hab eine html seite wo gewisse daten eingegeben und noch anderes zeug gemacht werden.
jetzt will ich das an eine php datei weiterschikso so dass die das in ne textdatei schreiben soll. aber hab keine ahnung wie das geht!
oft sieht man xyz.php?=Blabla
kann mir da jemand weiterhelfen!

Danke im voraus
Mfg


Zuletzt bearbeitet von Philipp_Reitter am Di 05.12.06 18:18, insgesamt 1-mal bearbeitet
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 03.12.06 12:57 

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Philipp_Reitter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: So 03.12.06 13:01 
also wie man in textdateien schreibt das weiß ich gerade noch ^^
danke für die hlfe (obwohl ein bisschen genauer wöhr auch ned schlecht)
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 03.12.06 13:08 
In der Variablen $_GET hast Du als Indizes die ganzen Variablen, die Du vom Browser übergeben bekommst ...

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
<?

$f = fopen('hello.txt', 'w+');
fputs($f, "Hallo " . $_GET['nick'] . "!\n");
fclose($f);

?>


würde er immer den Teil hinter dem Wert nick= in die Datei schreiben:

example.com/?nick=BenBE

Würde in die Datei
ausblenden Quelltext
1:
Hallo BenBE!					

schreiben.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: So 03.12.06 13:10 
Hallo!

Dieser Thread ist unglücklich, weil er keinen anständigen Titel hat. Auch im Off Topic möchten wir, dass sich unsere Threads wohl fühlen, daher taufe ihn doch bitte um ;-)

Grüße
Christian

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".