Here is the code that worked fine before the upgrade:
$quotes=file('lib/quotes.txt');
$number_quotes=count($quotes);
if($number_quotes!==0){$number_quotes.=-1;};
$random=rand(0,$number_quotes);
Then, all I had to do was echo $quotes[$random] but now it doesn't work. Can anyone tell me what is wrong or how to get this working again?