![]() |
|
|
+ Search |
![]()
|
May 17th, 2002 22:14
Max Holman, Byron Malcolm, http://www.php.net/file
Use the file() function.
Example of reading a text file into an array, looping through the
array, and echoing it back to the screen:
<?php
$content = file (myfile.txt');
while (list (,$line) = each ($content)) {
echo $line . '<BR>';
}
?>