Solved

Activating php extensions

Posted on 2003-11-01
3
2,161 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHPmailer and exchange online(Office365) 3 369
Trying to connect the LDAP over SSL 38 291
Application launch issue with Apache Tomcat 5 45
IPA - can it be run on a web server? 3 184
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

832 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