Hello Pankaj, With PHP you use libmcrypt and the PHP mcrypt functions to do encryption. Basically you need to install libmcrypt (you do not need mcrypt, just libmcrypt) and then add --with-mcrypt=/path/to/install (this is usually /usr/local) to your PHP configuration line. You can check to see if mcrypt support is already compiled into your PHP by doing a phpinfo(): and looking for --with-mcrypt on the configure line and an mcrypt section.
I've written a PHP Class the simplifies using mcrypt functions, its called crypt class and is available on Freshmeat.net at: http://freshmeat.net/projects/cryptclass/?topic_id=90 You do not need that script to do encryption with PHP but I've found for me it makes many things easier. Take a look at the PHP manual at http://www.php.net/mcrypt as well, it has examples of using mcrypt and a lot of good user contributed notes. Jason On Mon, 2003-02-10 at 07:20, Pankaj Naug wrote: > hiii!! > > 1. can anyone help me out with php script encryption.. are there > any freeware which i can use to encrypt my php scripts. > > > 2. have anybody has any ready made code which take's a directory > path and uses linux shell command to execute them??? actually i > want to use a shell command which takes a file name as input.. i > want to use the shell command for the whole directory.. thats it > > get back to me as soon as possible > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php