INI Settings

LIKE SUPERGLOBALS AND PERSISTENT CONSTANTS, which you saw in the last chapter, php.ini values must be declared within an extensions MINIT code block. Unlike these other features however, the INI option declaration consists of nothing more than one simple line for startup, and another for shutdown:

PHP_MINIT_FUNCTION(sample4)
{
 REGISTER_INI_ENTRIES();
 return SUCCESS;
}
PHP_MSHUTDOWN_FUNCTION(sample4)
{
 UNREGISTER_INI_ENTRIES();
 return SUCCESS;
}



Declaring and Accessing INI Settings





Extending and Embedding PHP
Extending and Embedding PHP
ISBN: 067232704X
EAN: 2147483647
Year: 2007
Pages: 175
Authors: Sara Golemon
Simiral book on Amazon

Flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net