Re: Reading a file and processing the data - HELP!
| From: | Hojtsy Gabor | Date: | Thu, 01 Nov 2001 11:13:29 +0000 |
| Subject: | Re: Reading a file and processing the data - HELP! | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-7281@lists.php.net to get a copy of this message | ||
Please ask support questions on our mailing lists. You can subscribe
to one at http://www.php.net/support.php
Goba [one webmaster@php.net]
----- Original Message -----
From: Mike
To: webmaster@php.net
Sent: Wednesday, October 31, 2001 6:04 PM
Subject: Reading a file and processing the data - HELP!
how do you read the contents of a file, because i want to display a script that displayes
different text according to the file here is the code that i have tried already, but it does not
work:
<?
$fp = fopen("status.txt", "r");
filesize ($fp);
if($fp == "2"){
echo ("-file is ready-");
fclose ($fp);
}
else
{
echo ("-file not ready-");
}
?>