hey.
i have a program that updates a .txt file with loginformation. i wonder if i somehow can make a .php file include the contents of a .txt into the php file when the page is loaded so it’s displayed.
[code=php]<?php include 'some-filename.txt' ?>[/code]
[code=php] $text = file_get_contents('filename.txt'); echo "$text"; [/code]
[code=php] $lines = file('filename.txt'); foreach ($lines as $line){ echo "<p>$line</p>"; } [/code]
Help @izlik spread the word by sharing this article on Twitter...