IfIrunthefollowingPHPcode,Iget123.Idon'tunderstandthelogicbehindit.WhatIthinkiswhenIcallthefunctioneachtimeitsupposetooutput1.Sotheoutputshouldbelike111.functionkeep_track(){STATIC$count=0;$count++;print$count;}keep_track();keep_track();keep_track();//output123IknowthatastaticvariableholdsthevalueevenafterthefunctionexitsbutintheabovefunctionIamassigningavalueintheveryfirstline,...

Idon'tthinkyourapproachisreallygood:1)Itisnotreallygoodtowritetoasinglefilefrommultiplerequests,becausethelookingofthefilemightdecreasetheperformanceofyourscript.Don'tyouhaveaccesstoanydatabasesystem?2)Doyouhaveanyaccountsystemonyourpage?Ifyes,IwouldprefertorestrictasecondvotebasedontheaccountratherthanontheIPaddress.3)Whatdoyoudowhenyoustartasecondpoll?Createasecondfile?4)fread($fh,200)...