Connecting Tech Pros Worldwide Help | Site Map

XAMPP and mcrypt

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 02:15 PM
believein@email.it
Guest
 
Posts: n/a
Default 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


  #2  
Old July 17th, 2005, 02:15 PM
sundialsvc4
Guest
 
Posts: n/a
Default Re: XAMPP and mcrypt

I don't use Windows, let alone XAMPP, but my first-blink question upon
reading this is ...
[color=blue]
> "libcrypt.dll" or "php_mcrypt.dll?" Which one is it supposed to be?[/color]

  #3  
Old July 17th, 2005, 02:15 PM
believein@email.it
Guest
 
Posts: n/a
Default Re: XAMPP and mcrypt

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.

  #4  
Old July 17th, 2005, 02:15 PM
R. Rajesh Jeba Anbiah
Guest
 
Posts: n/a
Default Re: XAMPP and mcrypt

believein@email.it wrote:[color=blue]
> 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() ...[/color]
<snip>
<news:1110994441.546648.198450@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

  #5  
Old July 18th, 2005, 09:15 AM
believein@email.it
Guest
 
Posts: n/a
Default Re: XAMPP and mcrypt

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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.