i was previously building my website on windows with xampp etc... however due to some software issues i had to change to linux and am now running ubuntu 13.10.
I reinstalled xampp onto ubuntu and transfered and setup my website on it for me to carry on work, everything seems to work fine apart from one section of the website which is this line of code.
$iv = mcrypt_create_iv(128, MCRYPT_DEV_URANDOM);
This code worked fine on windows and created the random string for me to create the cookie, however on the new ubuntu setup it is failing to work and just exits to the current page im on with no error messages.
I changed it to a random string like below
$iv = "aahd98a8du98sd9a8ud9ajsd89";
And the code ran fine, so it must be the mcrypt failing to run. Any ideas on why this may be happening?
Thanks