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
[Back to original message]
|