Posted by pakalk on 05/29/06 21:15
include 'songs/file.txt'; // for example, if you just wanna paste it
into your page
or if you want to put file contents into array:
$array = file('songs/file.txt'); // every line in seperate array
elements
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).
Navigation:
[Reply to this message]
|