PDA

View Full Version : Local Server - MySql


DesignWizard
17-08-2007, 06:26 PM
I have (finally) managed to install Apache (PHPEasy) as a local server on my PC. Got PHP and (at last) MySQL server running with PHPMyAdmin - however ........

Now get and error message when trying to run one of my scripts saying saying:
Fatal error: Call to undefined function: mcrypt_create_iv()

Anyone got any idea's?

Andrew Taylor
17-08-2007, 06:35 PM
It is looking for a function called mcrypt_create_iv in one of the scripts and can't find it

DesignWizard
17-08-2007, 06:46 PM
Yes that's the one Andrew!

Andrew Taylor
17-08-2007, 07:20 PM
You need to find why it can't find it, either a file isn't including properly, or a file is missing

Not much else I can do without seeing the script

DesignWizard
20-08-2007, 12:01 PM
The script works fine on the CSNM server - however when trying to use it on my local server I get the above error message.

Had a look at the PHPInfo for both and on the CSNM server it says the following:

mcrypt

mcrypt supportenabledVersion 2.5.7 Api No 20021217 Supported ciphers cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes Supported modes cbc cfb ctr ecb ncfb nofb ofb stream


However on the phpinfo for the local server it says nothing about mcrypt. I have had a look on google and downloaded a folder called libmcrypt-2.5.7 however have no idea how to install it/get it to work.

pug_106_cwc
13-10-2007, 11:55 AM
Have you declared it correctly ?