extension=php_gd2.dll by .htaccess file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kkshansid
    New Member
    • Oct 2008
    • 232

    extension=php_gd2.dll by .htaccess file

    to run captcha i uncommented
    extension=php_g d2.dll in php.ini page
    but on server i want to make this change by .htaccess file so i made a file
    with .htaccess extension and pasted on it
    extension=php_g d2.dll
    uploaded it on server but this method doesnt work
    kindly help me to make this uncomment change
    on .htaccess file
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hey.

    That is not possible. Enabling extensions is restricted to the php.ini file. (See the manual)

    It is possible to use the dl() function, but it has severe limitations. - Most notably, it is not available when running PHP as an Apache module, and even when running in CGI mode it is usually disabled for security reasons.

    Comment

    • kkshansid
      New Member
      • Oct 2008
      • 232

      #3
      so should i contact server administrator to do this change only in php.ini .are they able to do this change and restart the server????????

      Comment

      • Atli
        Recognized Expert Expert
        • Nov 2006
        • 5062

        #4
        Yes, the server admin will be able to do this.

        I am a little surprised that your setup has GD disabled in the first place. It's usually considered one of the code PHP extensions that you can assume hosts support (kind of like the MySQL extensions).

        Comment

        • kkshansid
          New Member
          • Oct 2008
          • 232

          #5
          thanx for ur valuable suggestion

          Comment

          Working...