answersLogoWhite

0


Best Answer
Answer

To get the list of currently loaded extensions within a PHP program. Use get_loaded_extensions() function.

To check what extensions are loaded by PHP on a given server, type this on the command line:

php -m


Here is a php script that will list the loaded extensions in a table. Save this file as phpext.php and place it on your website. Go to this file in your Web Browsers and see a list of loaded extensions:




/*
* Produce a table of Loaded PHP extensions
*
*/
$extensions = get_loaded_extensions();
foreach($extensions as $key => $value)
{
echo <<



EOT;
}
?>

$key

$value





User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you check which extensions are dynamically loaded in PHP?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you insert PHP code into JavaScript?

PHP is server-side code which means that the code is executed on the web server. The pages are dynamically created and sent to the user's browser. JavaScript is a client-side code which means that it runs on the user's computer after the page has been sent from the server. It is possible to combine PHP commands within JavaScript commands. You would mainly use this in setting up starting variables for your JavaScript. Example: ; &acirc;&euro;&brvbar;etc --> Another option is that you may consider using Ajax which allows you to dynamically call server-side code from JavaScript.


Will php 4.4.7 server support php 5 files?

Yes php 4.4.7 server support php 5 files. But most of the php 5 features are not supported by php 4.4.7 version


How do you create an area of a webpage to display PHP results?

PHP code blocks start with &lt;?php and end with ?&gt;.


What are the various ways to embedded PHP in HTML coding?

there are in fact two basic methods - one is called minimal PHP, and the second tends to be referred to as the CGI-way. minimal php means that you're making php secions in HTML only where really necessary (using the php section begin (&lt;?php ) and end (?&gt; ) tags.). the CGI-way, or maximum PHP means, that you're in fact embedding HTML into strings in php, and the whole page is echo()ed. the second way tends to be viewed as an abuse of php by some people, as php was meant to be "templating" language, and designed to be used mainly the first way.


Why can a CSS sheet fail to work properly after converting a web page from HTML to PHP?

AnswerThe web browser cannot tell whether the page information arriving at the browser comes from a PHP source or an HTML source. So if the HTML version works and the PHP version CSS is broken you have translated the page incorrectly. Examine the page source from the browser window for both versions and compare them closely. The PHP version must reference the CSS file correctly in the header. Check that in particular. :]

Related questions

What line is added to the Apache configuration file to ensure that PHP extensions are recognized?

Adding the following lines to the Apache 2.x configuration file will associate .php files with PHP, given the PHP 5 module (DLL file) is also loaded through the configuration: &lt;FilesMatch \.php$&gt; SetHandler application/x-httpd-php &lt;/FilesMatch&gt;


Expansion for php?

Not sure what you are asking but... PHP stands for PHP Hypertext Preprocessor. or are you wondering about extensions to the language, if so there are many. you can start here: http://pecl.php.net/


What does phpinfo do?

phpinfo() is a PHP function that displays detailed information about the PHP environment, including configuration settings, extensions, and server information. It is often used for debugging and troubleshooting purposes to gather information about the PHP setup on a server.


What is the main use of php than other programming languages?

PHP is used mainly to help create dynamically generated website pages. It is a script language running on a server. PHP programs are not compiled as executable files.


What is core php?

Core PHP is the language without the addition of various modules and extensions, such as EXIF, GDI, MySQL, and so on. It is the basic language.


What is meant by PECL in PHP?

PECL stands for PHP Extension Community Library and it is a repository for extensions which add additional functionality to the core PHP installation. An example would be the extension APC (Alternative PHP Cache) which allows you to setup a cache which optimizes the serving of intermediate code. When using a server, you can install the PECL repository and call upon it to download extensions as you require them.


What is PHP and PHPMyAdmin?

PHP is a server-side scripting language that can be used to dynamically generate the content of web sites served up to a client. It can also be used for local shell scripting. PHPMyAdmin is a PHP based web interface for managing MySQL databases.


Why PHP function is called when page is loaded?

There must be a statement in the file which calls the function


How do you enable dynamic loading in PHP?

To enable dynamic loading of extensions, set enable_dl option in php.ini to 1


What is php in address?

it means that the webpage was programmed in PHP (scripting language), so it's not pure static html, but (at least) parts of it are generated dynamically according to some data (usually from a database) - for example comments that users has added to articles, or such.


How can you publish webpages by saving them to what in excel 2007?

Webpages usually end in one if these extensions: .php .html .htm .aspx


Will PHP code developed on Windows work on an Apache server on Linux?

Generally speaking, yes. There are certain extensions to PHP one could install on Windows that would provide functions that aren't present on Linux.