CodeIgniter Forums

Full Version: Why encryption in codeigniter working in local but not on the server?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I used the below code in my local wamp server and everything is perfect
PHP Code:
$this->encryption->encode($result['wo_id']); 

But the same code is showing error when uploading to the web server online. Why?
CI Encryption library required mcrypt and openssl extensions, check on your server configuration, both extensions are available.
And what issue is show up on server, please elaborate more??
(03-24-2015, 10:47 PM)techbat Wrote: [ -> ]CI Encryption library required mcrypt and openssl extensions, check on your server configuration, both extensions are available.
And what issue is show up on server, please elaborate more??

Judging by the call to encode() instead of encrypt(), I'd say he's using CI2 and CI_Encrypt, which only supports Mcrypt and is deprecated in CI3.