I have 100000 users , I am alwyes send information, In fact this information don't reach to all users , I don't know why ?

I will attach send php files . and please see what is wrong of this flie and which logic I can use . Note if I change 1000 number to 3000 no user receive also I don't know why
------------------------------------