HooligansInDaKitchen Posted October 11, 2006 Share Posted October 11, 2006 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? Quote Link to comment https://forums.phpfreaks.com/topic/23698-loading-php-extensions-on-host-server/ Share on other sites More sharing options...
wildteen88 Posted October 11, 2006 Share Posted October 11, 2006 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.iniIf 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. Quote Link to comment https://forums.phpfreaks.com/topic/23698-loading-php-extensions-on-host-server/#findComment-107583 Share on other sites More sharing options...
HooligansInDaKitchen Posted October 11, 2006 Author Share Posted October 11, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/23698-loading-php-extensions-on-host-server/#findComment-107592 Share on other sites More sharing options...
mainewoods Posted October 11, 2006 Share Posted October 11, 2006 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! Quote Link to comment https://forums.phpfreaks.com/topic/23698-loading-php-extensions-on-host-server/#findComment-107606 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.