Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
06-24-2002, 05:14 AM
|
#1
|
|
Member
Registered: Mar 2002
Location: INDIA
Distribution: Mandrake Linux 9.2, Knoppix 3.0
Posts: 158
Rep:
|
php and mcrypt
Dear friends,
I have Redhat 7.2 installed with apache and php installed by default. but I am getting the following error in a php file when viewed in browser at the client end.
=======================
// source code of php file
<?php
$key = "this is a very secret key";
$input = "Let us meet at 9 o'clock at the secret place.";
$encrypted_data = mcrypt_ecb (MCRYPT_3DES, $key, $input, MCRYPT_ENCRYPT);
?>
=======================
=======================
Error message at the client
=======================
Fatal error: Call to undefined function: mcrypt_ecb() in /home/httpd/html/test.php on line 4
---------------------------------------------------------------------------
Can any one help me in this regards
Mayank
|
|
|
|
06-28-2002, 04:40 PM
|
#2
|
|
LQ Newbie
Registered: Jul 2001
Posts: 24
Rep:
|
Here's my random stab:
1) The libmcrypt library is not installed on your system. Look through your rpms on your cds before getting something off the web. ("locate libmcrypt" to see if it's installed.)
2) php was not linked with libmcrypt. I think is is, but... You'd have to install the srpm, modify the /usr/src/redhat/SPECS/php.spec file and then do a rpm -ba php.spec to get an rpm which is linked.
3) if you're messing with system passwords, you probably want to be using the crypt function instead.
|
|
|
|
06-28-2002, 04:53 PM
|
#3
|
root 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 9,529
|
I would guess that is is #2. To check you can use phpinfo(). Do you have an mcrypt section?
--jeremy
|
|
|
|
06-29-2002, 04:20 AM
|
#4
|
|
Member
Registered: Mar 2002
Location: INDIA
Distribution: Mandrake Linux 9.2, Knoppix 3.0
Posts: 158
Original Poster
Rep:
|
Thanks
It was #2 only and now i have solved the problem as was told
Thanks
Mayank
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:36 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|