473,804 Members | 2,109 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

extension=php_g d2.dll by .htaccess file

232 New Member
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
Mar 10 '10 #1
4 6128
Atli
5,058 Recognized Expert Expert
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 New Member
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 Recognized Expert Expert
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 New Member
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
1997
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 have used the function ImageCreateFromJPEG, and everything worked fine when I tested it on my local server. But when uploading the PHP-files to an extern server, I got the error message "Call to undefined function: imagecreatefromjpeg() in...
0
1593
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 calendar or a guest-book, and to do it with an extension system, the page says what type of content it is and an extension file processes the info. the content file would hold, a title, the type of content it is using, and content, the content...
2
1933
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 correct type of file to upload thxs for help in advance
6
2019
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: extension_dir =C:\PHP\ext extension=php_gd2.dll but...when I try to use ImageCreateFrom Jpeg in a script I get the following
0
1397
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 have a service (.asmx file) which contains the following: namespace OfficerCallIn { public class OfficerCallInService :
9
18142
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 always ecounter this error message: PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_gd2.dll' - The specified module could not be found. in Unknown on line 0
5
8276
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 restore it to SQL Server 2005 which i m using.It does not contain the name with that database in it. The file may contain the initial previous extension of MS Access,SQL Server,Oracle or MS Word. The file contains the database details. ...
26
3634
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 corresponding locking file appears in the Windows Explorer view pane as well as expected. Occasionally, a "bare" db1 file (extension only without a filename) appears in the Windows Explorer window. Can anyone tell me what that file is and what it...
3
2529
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 verify that the filename has a .txt extension. The code below works great as long as a '.' is entered regardless of the extension, but if no '.' is entered into the file name the program crashes. I'm sure it has to do with the fact the program is...
0
1551
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 filenames under /raw/ directory are, abc.bb.20060101.gz abc.bb.20060102.gz abc.bb.20080101 abc.bb.20080104I want to get all the files less than the date i type in command line. Also should adapt the script below. before this modification i was...
0
9716
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9595
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10354
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10359
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10101
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6870
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3837
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3005
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.