Login php sul mio sito web

No, it’s syntax is wrong, you go if, else, else if

and the elseif has no clause

That’s seems to be an oAuth loop to get a token with channel:read:subscriptions

echo = "you are not a subscriber"; suggests you are trying to do a subscriber check here, but this is just a loop to get the authentication/permission from the broadcaster