Is there a script that can show installed php extensions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
marlon
Forum Newbie
Posts: 6
Joined: Wed Apr 21, 2010 5:47 am
Location: Derby, UK

Is there a script that can show installed php extensions

Post by marlon »

Hello Everyone,

Is there a php script that I could upload to my server which when accessed using a web browser will show me the php extensions installed on the server? Anything other than php.info?

Many thanks in advance.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Is there a script that can show installed php extensions

Post by requinix »

If it's not your server then you probably have CPanel and can check the extensions there.
If it is your server (or you have shell access) you can just run "php -m".

Otherwise just write a quick script with get_loaded_extensions.
marlon
Forum Newbie
Posts: 6
Joined: Wed Apr 21, 2010 5:47 am
Location: Derby, UK

Re: Is there a script that can show installed php extensions

Post by marlon »

Thanks for your reply. I ran the command php -m as you suggested and it returned the results below. I'm actually trying to get the xmlrpc extension activated using a custom php.ini file on a hosted server but from the information below I don't know if xmlrpc is actually installed, I do know it's not running though. My hosting company have not been brilliant at helping me resolve this issue. Do you have any thoughts on what I could do to activate xmlrpc?

PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php/extensions
/no-debug-non-zts-20020429/php_xmlrpc.so' - /usr/lib/php/extensions/no-debug-non
-zts-20020429/php_xmlrpc.so: cannot open shared object file: No such file or directory in Unknown on line 0

Code: Select all

bcmath
bz2
calendar
ctype
curl
db
dba
dbase
domxml
exif
ftp
gd
gettext
iconv
idn
imap
mbstring
mcrypt
mhash
mysql
openssl
overload
pcre
posix
session
shmop
sqlite
standard
tokenizer
wddx
xml
xslt
zip
zlib

[Zend Modules]

Many thanks in advance.
Post Reply