472,145 Members | 1,490 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,145 software developers and data experts.

XAMPP and mcrypt

Hi all,
I installed PHP thru the XAMPP package on my windows machine.

The problem, I couldn't solve, is that the mcryppt funcs don't work.
It return the following message:
Call to undefined function mcrypt_decrypt() ...

If I write a
<?php
echo ***";
echo function_exists("mcrypt_decrypt");
echo function_exists("mcrypt_encrypt");
echo "***";
?>
it return nothing between the six asterisks.

I downloaded the libmcrypt.dll and copied it under c:\windows\system32
and erased the ";" in the extension=php_mcrypt.dll line.

But it still doesn't work.

Anyone could help me?

Thank you

Jul 17 '05 #1
4 27826
I don't use Windows, let alone XAMPP, but my first-blink question upon
reading this is ...
"libcrypt.dll" or "php_mcrypt.dll?" Which one is it supposed to be?


Jul 17 '05 #2
It's a good observation, I didn't noticed it. :-)

Anyway, since, after the installation, it didn't work, I followed the
instructions found on the php.net site
(http://it2.php.net/manual/it/ref.mcrypt.php)

So I downloaded the DLL at http://ftp.emini.dk/pub/php/win32/mcrypt/
and followed the instruction in the README.txt
http://ftp.emini.dk/pub/php/win32/mcrypt/README.txt

The extension_dir, as distributed by XAMPP, there is actually a
php_mcrypt.dll file.

I can interpret it this way.
In the php_mcrypt.dll there the functions I can use in my PHP code,
while in the libcrypt.dll there are the crypt algorytms.

Jul 17 '05 #3
be*******@email.it wrote:
Hi all,
I installed PHP thru the XAMPP package on my windows machine.

The problem, I couldn't solve, is that the mcryppt funcs don't work.
It return the following message:
Call to undefined function mcrypt_decrypt() ...

<snip>
<news:11**********************@l41g2000cwc.googleg roups.com> (
http://groups-beta.google.com/group/...77ae082bba11b3
)

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com

Jul 17 '05 #4
Problem solved!

I modified the php.ini in the \apachefriends\xampp\php directory while
I had to modify the one contained in \apachefriends\xampp\apache\bin.

Thank you everybody and excuse me if it was a silly problem.

Bye

Jul 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Matt McKay | last post: by
1 post views Thread by BKDotCom | last post: by
1 post views Thread by laredotornado | last post: by
5 posts views Thread by sylvian stone | last post: by
reply views Thread by codearcher | last post: by
18 posts views Thread by Frances | last post: by
reply views Thread by E. Recio | last post: by
5 posts views Thread by DavidNorep | last post: by
3 posts views Thread by =?UTF-8?Q?Ahmad_=E3=8B=A1_Baitalmal?= | last post: by
reply views Thread by Saiars | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.