473,404 Members | 2,179 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,404 software developers and data experts.

Displaying a list of all modules (extensions) installed

DQ
I just signed up for a web hosting service. They have PHP, but can't
tell me which modules (extensions) are installed.

Is there a function, or some other easy way, to show all modules
(extensions) that are installed? phpinfo() doesn't do this.

Mar 29 '06 #1
4 25338
NC
DQ wrote:

I just signed up for a web hosting service. They have PHP, but can't
tell me which modules (extensions) are installed.

Is there a function, or some other easy way, to show all modules
(extensions) that are installed? phpinfo() doesn't do this.


But of course it does! First, it shows you system information
(including configuration string), then, there's Configuration heading.
First table under Configuration is "PHP Core", the rest of the tables
contain data about extensions and their configuration. Something like
this:

bcmath
BCMath support enabled

calendar
Calendar support enabled

ctype
ctype functions enabled

curl
CURL support enabled
CURL Information libcurl/7.12.0 OpenSSL/0.9.6g zlib/1.1.3

Additionally, you can always check if an extension is present by
testing if functions defined in this extension are available. Example:
if (function_exists('imap_open')) {
echo "IMAP functions are available";
} else {
echo "IMAP functions are not available";
}

You could also call get_defined_functions() and see what extensions are
enabled from the list of functions that are available.

Cheers,
NC

Mar 29 '06 #2

DQ wrote:
I just signed up for a web hosting service. They have PHP, but can't
tell me which modules (extensions) are installed.

Is there a function, or some other easy way, to show all modules
(extensions) that are installed? phpinfo() doesn't do this.


See http://fi.php.net/get-loaded-extensions/.

Mar 29 '06 #3
DQ
You're right! I couldn't see the forest for the trees. I was looking
for a list of key-value pairs. I didn't realize that the _headings_
were what I needed. Thanks.

Mar 29 '06 #4
DQ
Perfect! That's just what I needed.

Mar 29 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Matthew Wilson | last post by:
I have Red Hat 9 installed, which uses python2.2 for lots of system tasks. I also installed 2.3 using the rpms available from python.org. I want to write some CGI scripts that use pgdb. I want...
0
by: Matthias | last post by:
Hello I am a programming newbie, trying to install the "Twisted" package from source, on a Windows computer with Python 2.3 installed. But when I try to build the sources it gives an error:...
2
by: . | last post by:
Hi, how can I build python modules on windows? I tried to build numarray using Microsoft Visual C++ 2003 Toolkit, but got the following error: --- error: Python was built with version 7.1 of...
1
by: Norman Fritag | last post by:
Hi there I have avoided to use active x controls because I thought they are causing more problems then they are doing any good. I a new application I would want to use the tree and list view...
10
by: musosdev | last post by:
Hi guys I'm trying to migrate to VS2005... I've managed to do that, but realised I'd opened my web projects as file projects, and I'm getting the error about network BIOS command limit. ...
1
by: tyler | last post by:
I've written a small python extension but I'm having difficulty loading it at runtime. The source for my extension is a module which is a member of a package is organized as follows. ...
0
by: John [H2O] | last post by:
Excellent! Thank you. Gerhard Häring wrote: -- View this message in context: http://www.nabble.com/list-versions-of-all-installed-modules-tp20204095p20212855.html Sent from the Python -...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is...
4
scubak1w1
by: scubak1w1 | last post by:
Hello, I have a series of database tables in PostgreSQL that I am getting data from and displaying in the web browser (via PHP, SQL, etc.) How about giving some details of what I am looking to...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.