Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP
#6
(09.12.2009, 20:07)Yannici Wrote: Also z.B. so:

In der .txt Datei:

PHP Code:
$variable = "Hallo"; $variable2 = "Welt";

In der PHP Datei:
PHP Code:
<?php $datei = fopen("text.txt"); $variablen = fgets($datei, 100); echo $variablen; fclose($datei); ?>

Meinst du das so?

o.o bei mir kommt da ne Fehlermeldung in jeder Zeile:
Code:
Warning: fopen() expects at least 2 parameters, 1 given in C:\Test\Test.php on line 2 Warning: fgets(): supplied argument is not a valid stream resource in C:\Test\Test.php on line 4 Warning: fclose(): supplied argument is not a valid stream resource in C:\Test\Test.php on line 8
O.O
Das ist jede zeile, die du geschrieben hast...
Ich konnte dir helfen? Dan bewerte mich doch bitte Positiv...
[Image: create.php?uid=6375]
[Image: snobs_7880908_de38.png]
Reply


Messages In This Thread
PHP - by Umkleide - 09.12.2009, 18:47
RE: PHP - by Yannici - 09.12.2009, 19:44
RE: PHP - by 3lite-Basher - 09.12.2009, 20:03
RE: PHP - by Yannici - 09.12.2009, 20:07
RE: PHP - by Umkleide - 09.12.2009, 20:26
RE: PHP - by agent47 - 09.12.2009, 20:19



Users browsing this thread: 1 Guest(s)