I am trying to setup my PHP site in my hosting server which is made from Codeigniter 2.2.0. Everything is fine only $end_date = $end_date ?: $start_date; this line of code generate a parse error -saying Parse error:
syntax error, unexpected ':' .
My hosting server php version is 5.2. How can I avoid this error?