PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
You script isn't running with error_reporting=E_ALL and display_errors=on. Otherwise you would have get error/notice messages.
Do you know how to adjust error_reporting and display_errors?
fread() takes a filehandle as first parameter, filesize() a string containing the filename. You've passed $voteIDcount to both functions but it can't be both, a filehandle and a string.