Jump to content

Loading PHP extensions on host server


HooligansInDaKitchen

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?
Link to comment
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.
Link to comment
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.
Link to comment
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!
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.