This is a discussion on reading a .txt-file with php within the PHP Language forums, part of the PHP Programming Forums category; Hello NG, I have the following problem and it would be nice, if someone could help me out on this ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello NG,
I have the following problem and it would be nice, if someone could help me out on this problem: Thanks for your help! Jules Bach content of file.txt #1: Michael #2: Dennis #3: Karl the following file writes only the first line of file.txt: <?php $fp = fopen("file.txt","r"); if ($fp) { $line = fgets($fp, 100); echo "$line<br><br>"; fclose($fp); } ?> Now I would like to have a PHP-file, which can write every line in different orders (the order should be write in the PHP-file) for example: #2: Dennis #1: Michael #3: Karl is this possible? Thank you very much for your help. |
|
|||
|
"Jules Bach" <jules.bach@gmx.de> wrote in message
news:bjkvc1$3p9$1@online.de... > Hello NG, > > I have the following problem and it would be nice, if someone could help > me out on this problem: > <snip> Already answered in alt.php. Please don't multipost. http://oakroadsystems.com/genl/unice.htm#xpost |