Thanks, This is what I changed, and it didn't work. I tried __FILE__ too.
$fp = fopen(__DIR__ . '/quotes.txt', "r");
Also, are you suggesting updated code for the original script?
I'm afraid I've gotten in over my head on this, but I'd like to finish what I started.