hrm, so i have a textfile with 2 data in each line that is seperated via a
space. now i want to get the second data to be displayed on the browser. i
use the following script but it doesn't work. what do i do wrong?
<?php
$userfile="addresses2.txt";
// userdatenbank oeffnen und daten auslesen
$fp = fopen($userfile,"r");
while ($line = fgets($fp,1000)){
$line = fgets($fp, 1000);
$line = explode(" ",$line[$key]);
echo $line[1];
$line = fgets($fp, 1000);
}
fclose($fp);
?>
-meph