Solved

Activating php extensions

Posted on 2003-11-01
3
2,175 Views
Last Modified: 2008-02-01
Is it possible to activate the php extensions php_curl.dll and php_gd.dll by appending .htaccess or another local file?

I do not have access to /etc/php.ini and cannot uncomment the lines required to activate php extensions I require.

There lines are:
;extension=php_curl.dll
;extension=php_gd.dll

I know it's possible to override values set in /etc/php.ini by adding them to a the local file .htaccess.

eg.
php_value magic_quotes_gpc 0

As far as I understand, the php server needs to be restarted in order for the extensions to be loaded. Maybe somebody out there knows a trick?

Red Hat Linux release 8.0 (Psyche)
Apache Version 1.3.28 (Unix)
PHP Version 4.3.2
0
Comment
Question by:Kosmok
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
heskyttberg earned 125 total points
ID: 9670168
Hi!

This can only be done with certain values.
An extension must be loaded when php starts and in this case this is when Apache starts.
And the linse should not be .dll in a RedHat environment.

So if you want thoose extension you have to talk the server owner into activating them.

Regards
/Hasse
0
 
LVL 3

Expert Comment

by:nigg
ID: 9683025
Hi,

You can try the following, but I never tested it:

At top of page write:

<?
/* You might set the absolute path where the extension exsists, like /home/user/extension/my_ext.so */
ini_set("extension","php_gd.so");

?>
0
 
LVL 8

Expert Comment

by:heskyttberg
ID: 9684785
Hi!

An extension cannot be loaded in this fashion, since it needs to restart the whole php engine in order to load an extension.
For info on settings to change in this manner see:
http://se.php.net/manual/en/function.ini-set.php

Regards
/Hasse
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question