Search code examples
phpcodeignitercodeigniter-2

Why encryption in codeigniter working in local server but not on the server?


I used the below code in my local wamp server and everything is perfect.

$this->encryption->encode($result['wo_id']);

But the same code is showing error when uploading to the web server online. Why?


Solution

  • Since PHP version of my server was old. I enabled PHP extension php_mcrypt from

    WAMP icon -> PHP ->PHP extensions -> php_mcrypt

    Now it works fine.