Jump to content

Archived

This topic is now archived and is closed to further replies.

HooligansInDaKitchen

Loading PHP extensions on host server

Recommended Posts

I am new to PHP and am unclear on how to implement standard PHP extensions on my website. I want to use the MCRYPT and MHASH functions to secure data before sending. My PHP script runs fine through the command line interface, producing a ciphertext and hash, but after putting it up on my site I get an error message saying I am calling an undefined function. I have read the documentation on my host's control panel; I know it supports PHP, my other scripts that don't use extensions work fine, but I don't see anything about adding support for extensions. I have also tried to dynamically load (dl()) mcrypt and mhash, but that does not seem to work either. What is the standard procedure for loading these kind of extensions on a host server?

Share this post


Link to post
Share on other sites
If you have access to the php.ini you can enable the exenstions there, either by adding
[code]exension=php_[extension_name_here].dll[/code]
or by uncommenting the line in the php.ini

If you dot not have access to the php.ini. Then you'll want to contact your hosts about it. They may enabled it for you.

Share this post


Link to post
Share on other sites
I can't find any access to php.ini, and my host company has not replied to any of my tickets, e-mails, and phone calls. Is the php.ini configuration file usually accessible? I mostly just want to know what the common practice is for implementing extensions, on a non-local server where there is not much support or access.

Share this post


Link to post
Share on other sites
On shared hosts the php.ini file is usually not accessable.  Pretty poor php host that doesn't already have the hash and encrytion functions installed!  Those are essential for lots of web apps.  I'd ditch that host if I was you and maybe try: http://www.webhostfreaks.com/
--associated with this web site
--usually have some low cost hosting packages allowing php and mysql with cpanel!

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.