XAMPP and mcrypt

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • believein@email.it

    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_decryp t");
    echo function_exists ("mcrypt_encryp t");
    echo "***";
    ?>
    it return nothing between the six asterisks.

    I downloaded the libmcrypt.dll and copied it under c:\windows\syst em32
    and erased the ";" in the extension=php_m crypt.dll line.

    But it still doesn't work.

    Anyone could help me?

    Thank you

  • sundialsvc4

    #2
    Re: XAMPP and mcrypt

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

    Comment

    • believein@email.it

      #3
      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


      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.

      Comment

      • R. Rajesh Jeba Anbiah

        #4
        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:111099444 1.546648.198450 @l41g2000cwc.go oglegroups.com> (

        )

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

        Comment

        • believein@email.it

          #5
          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\bi n.

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

          Bye

          Comment

          Working...