Re: [PHP] error checking with fread

2003-03-06 Thread Marek Kilimajer
add this check John Taylor-Johnston wrote: http://www.php.net/manual/en/function.fread.php What about error checking if the file contains something as I include below? Is that enough? Is this the right way? if(!$handle) die('could not open file for reading'); $contents = fread ($handle, files

[PHP] error checking with fread

2003-03-05 Thread John Taylor-Johnston
http://www.php.net/manual/en/function.fread.php What about error checking if the file contains something as I include below? Is that enough? Is this the right way? $contents";} else{echo "no contents there";} ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w