Web Hosting Talk







View Full Version : I have a general question about Servers with PHP


jkbelden
06-05-2004, 06:18 PM
I see more and more servers offering PHP these days. I am interested in one particular compilation feature Mcrypt. Would you say as a general rule that most servers compile PHP with Mcrypt included and if so, in what percentages world wide? Does it matter what type of server either or just that PHP is available?

I ask because I have a new script that depends on Mcrypt being part and parcel of PHP on a client's server. If there is a high degree of confidence that they have probably compiled with Mcrypt, then I do not have much to worry about, but if not, I need to know. Information about it is not easily available as with Perl modules or is their a simple script to run to check before hand? This is a major question for me as my script is written in PHP to take advantage of Mcrypt and server-side resources.

I would appreciate any and all suggestions and thoughts.

pizzaboy_au
06-05-2004, 07:15 PM
If in doubt just ask your hoster if they have Mcrypt installed. If they don't ask them to install it for you. It only takes about 5 minutes to do.

But usually most hosts will have it installed.

sasha
06-05-2004, 07:35 PM
I am just guessing but you should be able to get the same functionality from mcryot cli as what you get from php module. So as a part of your programme's install you could check if php was built with mcrypt support, if not, check it there are mcrypt and mcdecrypt binaries available, if not your installation programme could attempt to compile it and install it localy.