syntax error, unexpected 'redirect' (T_STRING), expecting function (T_FUNCTION)