@daPhyre
Eso no es definitivo, muchos servidores compartidos, tienen incluida phpinfo() es su lista de "disable_functions"
Podria ejecutar algo asi
Código PHP:
Ver original<?php
header("content-type:text/html; charset=utf-8"); <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Información </title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style type="text/css">
* {
font-family: verdana, serif;
font-size: 10pt;
}
h3 {
font-size: 12pt;
}
</style>
</head>
<body>
<?php
echo "<h1 style='font-size: 18pt;'>Información sobre instalación de php</h1>\n";
echo "<h2 style='font-size: 16pt;'>Versión de PHP \n";
echo "</h2>\n";
echo "<hr />\n<div>\n";
echo "<h2 style='font-size: 16pt;'>Extensiones cargadas</h2>\n<pre>\n";
echo "</pre>";
echo "<h2 style='font-size: 16pt;'>Variables del servidor</h2>\n";
echo "<div style='white-space: pre-line;width: 90%; padding: 15px; border:dotted 1px #530000;'>";
debug();
echo "</div>";
echo "<h2 style='font-size: 16pt;'>Valores de phph.ini</h2>\n";
echo "<textarea cols='150' rows='30' style='width: 90%; height: 300px; color:#002200;border:dotted 1px #002200;'>";
echo "
</textarea>
<pre style='color: darkblue; font-weight: 900;'>
Constante Valor Modificable
PHP_INI_USER 1 La entrada puede ser modificada en las scripts de usuario
PHP_INI_PERDIR 2 La entrada puede ser modificada en php.ini, .htaccess o httpd.conf
PHP_INI_SYSTEM 4 La entrada puede ser modificada en php.ini o httpd.conf
PHP_INI_ALL 7 La entrada puede ser modificada por cualquiera
";
echo 'display_errors = ' . ini_get('display_errors') . "\n"; echo 'register_globals = ' . ini_get('register_globals') . "\n"; echo 'post_max_size = ' . ini_get('post_max_size') . "\n"; echo 'post_max_size+1 = ' . (ini_get('post_max_size')+1) . "\n"; echo 'post_max_size in bytes = ' . devuelve_bytes
(ini_get('post_max_size'));
function devuelve_bytes($val) {
switch($last) {
//
case 'g':
$val *= 1024;
case 'm':
$val *= 1024;
case 'k':
$val *= 1024;
}
return $val;
}
?>
</pre>
</div>
</body>
</html>
<?php
########################################
function debug(){
//echo "\n\n\n<!-- variables \n";
echo "_SERVER\n";
foreach ($_SERVER as $indice=>$str){
$$indice = $str ;
}
echo "_POST\n";
foreach ($_POST as $indice=>$str){
$$indice = $str ;
echo "$indice = $str \n";
}
echo "_GET\n";
foreach ($_GET as $indice=>$str){
$$indice = $str ;
echo "$indice = $str \n";
}
echo "_COOKIE\n";
foreach ($_COOKIE as $indice=>$str){
$$indice = $str ;
echo "$indice = $str \n";
}
echo "_SESSION\n";
foreach ($_SESSION as $indice=>$str){
$$indice = $str ;
echo "$indice = $str \n";
}
//echo "-->";
}
?>
Saludos