By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,607 Members | 1,925 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,607 IT Pros & Developers. It's quick & easy.

extension=php_gd2.dll by .htaccess file

100+
P: 232
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
Mar 10 '10 #1
Share this Question
Share on Google+
4 Replies


Atli
Expert 5K+
P: 5,058
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.
Mar 10 '10 #2

100+
P: 232
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????????
Mar 10 '10 #3

Atli
Expert 5K+
P: 5,058
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).
Mar 10 '10 #4

100+
P: 232
thanx for ur valuable suggestion
Mar 10 '10 #5

Post your reply

Sign in to post your reply or Sign up for a free account.