You are here: Re: PHP with .TXT « All PHP « IT news, forums, messages
Re: PHP with .TXT

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация