[eluser]Taff[/eluser]
Can anyone point me in the right direction, I am using redux auth and it is working very well!
I just uploaded my daily build including redux to our webspace and am getting an error. It works fine locally with php5 but the webspace we have currently uses php4.
This is the error I am getting:
Code:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in www-data/live/matching_ci/system/application/libraries/redux_auth.php on line 47
Line 47 looks like this:
public function register ($username, $password, $email, $question, $answer)
which looks ok, so I presume it has something to do with the constructor:
Code:
function __construct()
{
$this->ci =& get_instance();
$this->ci->config->load('redux_auth');
$auth = $this->ci->config->item('auth');
foreach($auth as $key => $value)
{
$this->$key = $value;
}
$this->ci->email->initialize($this->mail);
}
Is there anyway I can convert this to support both PHP versions?
Thanks from a newbie for any pointers!
Taff