Connect with Expertise | Find Experts, Get Answers, Share Insights

extension=php_gd2.dll by .htaccess file

C
 
Join Date: Oct 2008
Posts: 155
#1: Mar 10 '10
to run captcha i uncommented
extension=php_gd2.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_gd2.dll
uploaded it on server but this method doesnt work
kindly help me to make this uncomment change
on .htaccess file

Atli's Avatar
E
M
C
 
Join Date: Nov 2006
Location: Iceland
Posts: 4,618
#2: Mar 10 '10

re: extension=php_gd2.dll by .htaccess file


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.
C
 
Join Date: Oct 2008
Posts: 155
#3: Mar 10 '10

re: extension=php_gd2.dll by .htaccess file


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????????
Atli's Avatar
E
M
C
 
Join Date: Nov 2006
Location: Iceland
Posts: 4,618
#4: Mar 10 '10

re: extension=php_gd2.dll by .htaccess file


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).
C
 
Join Date: Oct 2008
Posts: 155
#5: Mar 10 '10

re: extension=php_gd2.dll by .htaccess file


thanx for ur valuable suggestion
Reply

Tags
extension