Reading a file and processing the data - HELP!

From: Date: Wed, 31 Oct 2001 17:04:20 +0000
Subject: Reading a file and processing the data - HELP!
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-7270@lists.php.net to get a copy of this message
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-"); } ?>

« previous php.mirrors (#7270) next »