> Hey
>
> I have a TEXT file that I want to make visual via the web using php
>
>
>
Maybe this isn't the best way but to do this I use the following code:
<?php
function do_print($item2,$clave) {
echo $item2."<BR>";
}
$lines=file("yourfile.txt");
array_walk($lines,'do_print');
?>
As you can see I use the file() function to get each line of text into an
array and then the function array_walk() to do the visualization.
Hope it helps!
Fernando
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php