|
Title: Including extensions Post by: ScottInTexas on June 23, 2007, 12:14:11 PM I am running PHP 4 on a windows xp machine. I tried editing the php.ini file so I could include the mcrypt.dll. My directory for extensions says "extension_dir = ../php/extensions" and I have uncommented the extension=php_mcrypt.dll line. When I run a php file this error occurs
Fatal error: Call to undefined function: mcrypt_get_key_size() in c:\phpdev5\www\alaskaerrands\register.php on line 101 Can anyone tell me if this function is NOT available in PHP 4 and if not then how do I change this line? $cryptKey = substr($fieldHash,0,mcrypt_get_key_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB)); I got this from the article here about secure forms. Title: Re: Including extensions Post by: rdivilbiss on June 23, 2007, 05:27:57 PM For Windows you path should be like this:
extension_dir = "c:\php\ext" (windows style) rather than ../../ext (unix style) Also, I often either put the path to PHP, the EXT folder and MYSQL stuff in the PATH environment variable of the Windows server, or alternatively you can simply copy the dll to C:\windows\system32. I'd try the last one first, because it does not require a reboot. (http://www.rodsdot.com/temp_testing/php-ini.jpg) Title: Re: Including extensions Post by: rdivilbiss on June 23, 2007, 05:52:04 PM Also php_mcrypt.dll requires libmcrypt.dll which I also put in windows\system32
(http://www.rodsdot.com/temp_testing/php-path.jpg) Title: Re: Including extensions Post by: rdivilbiss on June 24, 2007, 05:32:00 PM And if you never get mcrypt to work, you can do it with Brutuslib*.
https://www.cafesong.com/ert/login_form/login1.php https://www.cafesong.com/ert/login_form/login_form_examples_rev.zip <-- has a revised formFunctions using Brutuslib* instead of mcrypt. Regards, Rod * Brutuslib 1.1, freeware synchronous encryption library based on elementary functions only (c) 2004-2006 Jan Drda <yan@yan.cz>, last change April 2006
Powered by SMF 1.1 RC2 |
SMF © 2001-2005, Lewis Media
Joomla Bridge by JoomlaHacks.com |