I am using this https://github.com/ircmaxell/password_compat
I have no problem using it on a local server. But as soon as I test it on a live server, it gives me an error like this.
Parse error: syntax error, unexpected '{' in /home/public_html/sub/snippets/password.php on line 19
The error is on the same line as the beginning of the code in that library.
Why is this happening?