Remove public static
.
Those Keywords are for function definitions inside a class.
Alternative: define a class around your function, this will take care of other class related references as well:
class MyClass {
// your function here
}
then you can call your function like this:
MyClass::redirect();
2
solved Parse error: syntax error, unexpected ‘public’ (T_PUBLIC) in [closed]