views:

60

answers:

2

I am coding in PHP on Apache, and I have access to two main areas on the Unix server. I have a personal directory and I have a project directory. I noticed that in the project directory there is a extension/module that I have access to automatically which I don't have in my personal directory (I can see it listed in phpinfo()).

So I'm guessing that the server admins set it up this way because most users wouldn't require this extension in their personal area, but I do.

I have looked through several base level .htaccess files and conf files, but can't seem to find the point that this extension is being initialized for the project area. Is there a way via PHP for me to list not only all the loaded extensions but at what point they are loaded?

+1  A: 

I can think of 2 ways for loading extensions

  1. through php.ini with the extension/zend_extension directories. Note that this would not work with user.ini files (per directory configuration)

  2. through the combined usage of auto_prepend_file INI setting and the dl() function. The latter can load extensions dynamically. And auto_prepend can be used to make the PHP interpreter run any code before yours runs. But dl() has been deprecated in PHP 5.3 and will be completely gone in PHP6.

And if all else fails - why don't you ask your server admins?

Anti Veeranna
A: 

Is there a way via PHP for me to list not only all the loaded extensions but at what point they are loaded?

No. Ask server admin.

FractalizeR