put phpinfo() in array and output
Check for extension to be loaded before setting appname