473,379 Members | 1,355 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

extension=php_gd2.dll by .htaccess file

232 100+
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
4 6085
Atli
5,058 Expert 4TB
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
kkshansid
232 100+
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
5,058 Expert 4TB
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
kkshansid
232 100+
thanx for ur valuable suggestion
Mar 10 '10 #5

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

Similar topics

4
by: ojorus | last post by:
Hi! I've just experiences a nightmare... I have made a quite good image-upload system in PHP, which make two versions of the image uploaded; one with the size 350*263, and a small thumbnail. I...
0
by: infinull | last post by:
I am making a script that is a very complex Content Management system. it makes a UDM navigation bar and writes content and a title. i want it to write content other that just basic text, like a...
2
by: vishal | last post by:
i am allowing user to add file upload to server and the suer can put only those files which display some image i.e. jpg or gif or other photo file. so how can i check that the user has selected...
6
by: lwoods | last post by:
I'm trying to do some image work. I have enabled the graphics extension and the extension path in php.ini, as well as copying the dll to C:\PHP...just for good measure. php.ini: ...
0
by: Robert Rotstein | last post by:
I want to write a SOAP extension that gets activated from both the client and the server. From whast I have read, this should be quite easy to do. Yet I can only activate it from the server. I...
9
Nert
by: Nert | last post by:
hello, i had the extension php_gd2.dll, and put it on "c:\php\ext" ( this is my extension_dir ), i also uncommented the php_gd2.dll in my php.ini, i am using PHP 5.1.2. now my problem was, i...
5
by: Miaaa Mukherjee | last post by:
CAN anyone tell me how can i restore the .BAK extension file ??Please tell me the steps what should be done to restore the file as i m not at all aware of how to restore the .BAK file.Can i directly...
26
by: Don Calloway | last post by:
I have created a <filename>.db1 (where <filenameis the name given to the database) Access database that is being used in multi-user mode. When the <filename>.db1 file is opened by a user, the...
3
by: plbaldri | last post by:
I have written a very simple and basic program for an intro Comp Sci class and am having trouble with it crashing. The program needs to accept a filename on the command line at the prompt and has to...
0
by: john12345 | last post by:
Hi, I need help with the script below, the if statments are fine they work perfect. what i am looking for is getting the files from the directory /raw/ with the restriction. for example, the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.