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.
Is there a script that can show installed php extensions
Moderator: General Moderators
Re: Is there a script that can show installed php extensions
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.
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.
Re: Is there a script that can show installed php extensions
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
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.