You are here: Re: PHP and Reading Linux Text Files « PHP Programming Language « IT news, forums, messages
Re: PHP and Reading Linux Text Files

Posted by Jasen Betts on 02/18/06 00:50

On 2006-02-17, Skeets <skillet3232@yahoo.com> wrote:
> let's say i have a linux text file located and named...
>
> /var//status/info
>
> it has a "0" or a "1" in it to indicate on or off.
>
> can php read this file even though it isn't in the apache html
> directory tree? if so, how is this done?

this is the easiest way:

$value=file_get_contents("/var/status/info");





--

Bye.
Jasen

 

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

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