Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- PHP with .TXT
- The Numerator
May 29, 2006, 5:39 pm
rate this thread
Re: PHP with .TXT
into your page
or if you want to put file contents into array:
$array = file('songs/file.txt'); // every line in seperate array
or if you want to put file contents into string:
$string = file_get_contents('songs/file.txt');
In future, use PHP-manual. It is really good source of PHP-knowledge
(even substitutes tutorials).
- » book PHP 5 Objects, Patterns, and Practice - how to use example?
- — Previous thread in » PHP Scripting Forum