Inurl Php Mature 10Configuration
![](/file/e021c11235610309944c8.gif)
🛑 👉🏻👉🏻👉🏻 INFORMATION AVAILABLE CLICK HERE👈🏻👈🏻👈🏻
Rhode Island Department of Health
Phone: 401-222-5960
Licensing Unit Room 105A,
8:30 AM - 3:30 PM, Weekdays
Directions
Parking is restricted until 3 PM
It is illegal to smoke or vape in this establishment (2019) (English) (Spanish)
Due to COVID-19, we are experiencing a delay in the printing of licenses. All licensee status and expiration dates can be verified at https://healthri.mylicense.com/Verification.
Renewal notices are sent out 60 days before your expiration date. Renew Online
Department of Health
3 Capitol Hill
Providence, RI 02908
Email us
Directions
Phone: 401-222-5960
After Hours Phone: 401-276-8046
RI Relay 711
Phonebook
COVID-19 Info Line
Monday – Friday
8:30 AM - 5:00 PM
Saturday – Sunday
8:30 AM - 4:30 PM
Phone: 401-222-8022
After hours:
Call 211
RIDOH.COVID19Questions@health.ri.gov
Change language:
English
Brazilian Portuguese
Chinese (Simplified)
French
German
Japanese
Romanian
Russian
Spanish
Turkish
Other
phpinfo — Outputs information about PHP's configuration
phpinfo(int $flags = INFO_ALL): bool
Outputs a large amount of information about the current state of PHP. This includes information about PHP compilation options and extensions, the PHP version, server information and environment (if compiled as a module), the PHP environment, OS version information, paths, master and local values of configuration options, HTTP headers, and the PHP License.
Because every system is setup differently, phpinfo() is commonly used to check configuration settings and for available predefined variables on a given system.
phpinfo() is also a valuable debugging tool as it contains all EGPCS (Environment, GET, POST, Cookie, Server) data.
The output may be customized by passing one or more of the following constants bitwise values summed together in the optional flags parameter. One can also combine the respective constants or bitwise values together with the bitwise or operator.
The configuration line, php.ini location, build date, Web Server, System and more.
PHP Credits. See also phpcredits().
Current Local and Master values for PHP directives. See also ini_get().
Loaded modules and their respective settings. See also get_loaded_extensions().
Environment Variable information that's also available in $_ENV.
Shows all predefined variables from EGPCS (Environment, GET, POST, Cookie, Server).
PHP License information. See also the » license FAQ.
Returns true on success or false on failure.
?php
// Show all information, defaults to INFO_ALL
phpinfo();
// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);
?
In versions of PHP before 5.5, parts of the information displayed are disabled when the expose_php configuration setting is set to off. This includes the PHP and Zend logos, and the credits.
phpinfo() outputs plain text instead of HTML when using the CLI mode.
See Also ¶
phpversion() - Gets the current PHP version
phpcredits() - Prints out the credits for PHP
php_logo_guid()
ini_get() - Gets the value of a configuration option
ini_set() - Sets the value of a configuration option
get_loaded_extensions() - Returns an array with the names of all modules compiled and loaded
Predefined Variables
add a note
User Contributed Notes 20 notes
A simple method to style your own phpinfo() output.
#phpinfo {}
#phpinfo pre {}
#phpinfo a:link {}
#phpinfo a:hover {}
#phpinfo table {}
#phpinfo .center {}
#phpinfo .center table {}
#phpinfo .center th {}
#phpinfo td, th {}
#phpinfo h1 {}
#phpinfo h2 {}
#phpinfo .p {}
#phpinfo .e {}
#phpinfo .h {}
#phpinfo .v {}
#phpinfo .vr {}
#phpinfo img {}
#phpinfo hr {}
?php
ob_start () ;
phpinfo () ;
$pinfo = ob_get_contents () ;
ob_end_clean () ;
// the name attribute "module_Zend Optimizer" of an anker-tag is not xhtml valide, so replace it with "module_Zend_Optimizer"
echo ( str_replace ( "module_Zend Optimizer", "module_Zend_Optimizer", preg_replace ( '%^.*<body(.*).*$%ms', '$1', $pinfo ) ) ) ;
?>
After reading and trying various functions, I couldn't find one that correctly parses all the configurations, strips any left-over html tag and converts special characters into UTF8 (e.g. ' into '), so I created my own by improving on the existing ones:
function phpinfo2array() {
$entitiesToUtf8 = function($input) {
// http://php.net/manual/en/function.html-entity-decode.php#104617
return preg_replace_callback("/(&#[0-9]+;)/", function($m) { return mb_convert_encoding($m[1], "UTF-8", "HTML-ENTITIES"); }, $input);
};
$plainText = function($input) use ($entitiesToUtf8) {
return trim(html_entity_decode($entitiesToUtf8(strip_tags($input))));
};
$titlePlainText = function($input) use ($plainText) {
return '# '.$plainText($input);
};
ob_start();
phpinfo(-1);
$phpinfo = array('phpinfo' => array());
// Strip everything after the tag (other h1's)
if (!preg_match('#(.*]*>\s*Configuration.*)(?:)?(.*?)(?:<\/a>)?<\/h2>)|'.
'(?:(.*?)\s*(?:(.*?)\s*(?:(.*?)\s*)?)?)#s',
$input,
$matches,
PREG_SET_ORDER
)) {
foreach ($matches as $match) {
$fn = strpos($match[0], ' Array
(
[0] => PHP Version 5.6.5
[System] => Darwin Calins-MBP 15.0.0 Darwin Kernel Version 15.0.0: Wed Aug 26 19:41:34 PDT 2015; root:xnu-3247.1.106~5/RELEASE_X86_64 x86_64
[Build Date] => Feb 19 2015 18:34:18
[Registered Stream Socket Transports] => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls, tlsv1.0
[Registered Stream Filters] => zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk
[1] => This program makes use of the Zend Scripting Language Engine:Zend Engine...
)
[apache2handler] => Array
(
[Apache Version] => Apache/2.4.16 (Unix) PHP/5.6.5 OpenSSL/0.9.8zg
[Apache API Version] => 20120211
[Server Administrator] => webmaster@dummy-host2.example.com
[Hostname:Port] => sitestacker.local:0
[# Directive] => Array
(
[0] => # Local Value
[1] => # Master Value
)
[engine] => Array
(
[0] => 1
[1] => 1
)
[last_modified] => Array
(
[0] => 0
[1] => 0
)
REMARK/INFO: if Content-Security-Policy HTTP header
is
Content-Security-Policy "default-src 'self';";
phpinfo() is shown without a table
Hi.
Here my version of saving php_info into an array:
~", $line, $title) ? $cat = $title[1] : null;
if(preg_match("~]+>([^<]*)]+>([^<]*)~", $line, $val))
{
$info_arr[$cat][$val[1]] = $val[2];
}
elseif(preg_match("~]+>([^<]*)]+>([^<]*)]+>([^<]*)~", $line, $val))
{
$info_arr[$cat][$val[1]] = array("local" => $val[2], "master" => $val[3]);
}
}
return $info_arr;
}
// example:
echo "";
?>
Removes sensitive data like AUTH_USER and AUTH_PASSWORD from the phpinfo output:
no value', $html);
if (isset($_SERVER['AUTH_PASSWORD'])) $html = str_replace($_SERVER['AUTH_PASSWORD'], 'no value', $html);
echo $html;
This is necessary to obtain a W3C validation (XHTML1.0 Transitionnal)...
phpinfo's output is declared with that DTD :
- "System ID" has the wrong url to validate : "DTD/xhtml1-transitional.dtd" rather than "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
- Some module names contains space and the function's output use the name in anchors as ID and NAME. these attributes can't be validated like that (unique name only).
createDocumentType (
'html',
'-//W3C//DTD XHTML 1.0 Transitional//EN',
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'
);
$doc = $imp->createDocument (
'http://www.w3.org/1999/xhtml',
'html',
$dtd
);
$doc->encoding = 'utf-8';
$info_doc = new DOMDocument ('1.0', 'utf-8');
/* Parse phpinfo's output
* operator @ used to avoid messages about undefined entities
* or use loadHTML instead
*/
@$info_doc->loadXML ($info);
$doc->documentElement->appendChild ( // Adding HEAD element to HTML
$doc->importNode (
$info_doc->getElementsByTagName ('head')->item (0),
true // With all the subtree
)
);
$doc->documentElement->appendChild ( // Adding BODY element to HTML
$doc->importNode (
$info_doc->getElementsByTagName ('body')->item (0),
true // With all the subtree
)
);
// Now you get a clean output and you are able to validate...
/*
echo ($doc->saveXML ());
// OR
echo ($doc->saveHTML ());
*/
// By that way it's easy to add some style declaration :
$style = $doc->getElementsByTagName ('style')->item (0);
$style->appendChild (
$doc->createTextNode (
'/* SOME NEW CSS RULES TO ADD TO THE FUNCTION OUTPUT */'
)
);
// to add some more informations to display :
$body = $doc->getElementsByTagName ('body')->item (0);
$element = $doc->createElement ('p');
$element->appendChild (
$doc->createTextNode (
'SOME NEW CONTENT TO DISPLAY'
)
);
$body->appendChild ($element);
// to add a new header :
$head = $doc->getElementsByTagName ('head')->item (0);
$meta = $doc->createElement ('meta');
$meta->setAttribute ('name', 'author');
$meta->setAttribute ('content', 'arimbourg at ariworld dot eu');
$head->appendChild ($meta);
// As you wish, take the rest of the output and add it for debugging
$out = ob_get_clean ();
$pre = $doc->createElement ('div'); // or pre
$pre->setAttribute ('style', 'white-space: pre;'); // for a div element, useless with pre
$pre->appendChild ($doc->createTextNode ($out));
$body->appendChild ($pre);
$doc->formatOutput = true; // For a nice indentation
$doc->saveXML ();
?>
All that could be done with only RegExp but I prefer the use of DOM for manipulating documents
This function parses the phpinfo output to get details about a PHP module.
');
$s = preg_replace('/]*>([^<]+)<\/th>/',"\\1",$s);
$s = preg_replace('/]*>([^<]+)<\/td>/',"\\1",$s);
$vTmp = preg_split('/(