Thanks for the replies folks. Sorry for the ambiguity, I will go ahead and elaborate.
Beta.php is the main file and calls within the HTML
<?php include('array.php') ?>
array.php is in the same directory, containing this code:
<?php
$file=fopen('array.txt','r');
echo fgets($file);
fclose($file);
?>
and array.txt is just a list of strings. If I replace fgets($file) with fgetc($file), the code works and the page will display. Otherwise, the error occurs. Here is the page I am working on in case you are interested: http://cdizzle.comze.com/test/beta.php