Ver Mensaje Individual
  #13 (permalink)  
Antiguo 17/03/2012, 07:06
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: Compatibilidad HTML5 y Php

@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
  1. <?php
  2. header("content-type:text/html; charset=utf-8");
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  4. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml">
  6. <head>
  7. <title>Información </title>
  8. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  9. <style type="text/css">
  10.  
  11. * {
  12. font-family: verdana, serif;
  13. font-size: 10pt;
  14. }
  15.  
  16. h3 {
  17. font-size: 12pt;
  18. }
  19. </style>
  20. </head>
  21. <body>
  22. <?php
  23. echo "<h1 style='font-size: 18pt;'>Información sobre instalación de php</h1>\n";
  24. echo "<h2 style='font-size: 16pt;'>Versión de PHP \n";
  25. echo phpversion();
  26. echo "</h2>\n";
  27. echo "<hr />\n<div>\n";
  28. echo "<h2 style='font-size: 16pt;'>Extensiones cargadas</h2>\n<pre>\n";
  29. echo "</pre>";
  30. echo "<h2 style='font-size: 16pt;'>Variables del servidor</h2>\n";
  31. echo "<div style='white-space: pre-line;width: 90%; padding: 15px; border:dotted 1px #530000;'>";
  32. debug();
  33. echo "</div>";
  34. echo "<h2 style='font-size: 16pt;'>Valores de phph.ini</h2>\n";
  35. $var_uno = ini_get_all("pcre");
  36. $var_dos = ini_get_all();
  37. echo "<textarea cols='150' rows='30' style='width: 90%; height: 300px; color:#002200;border:dotted 1px #002200;'>";
  38. print_r($var_uno);
  39. print_r($var_dos);
  40. echo "
  41. </textarea>
  42. <pre style='color: darkblue; font-weight: 900;'>
  43.  
  44. Constante                   Valor           Modificable
  45. PHP_INI_USER                1           La entrada puede ser modificada en las scripts de usuario
  46. PHP_INI_PERDIR              2           La entrada puede ser modificada en php.ini, .htaccess o httpd.conf
  47. PHP_INI_SYSTEM              4           La entrada puede ser modificada en php.ini o httpd.conf
  48. PHP_INI_ALL                 7           La entrada puede ser modificada por cualquiera
  49.  
  50.  
  51. ";
  52.  
  53. echo 'display_errors = ' . ini_get('display_errors') . "\n";
  54. echo 'register_globals = ' . ini_get('register_globals') . "\n";
  55. echo 'post_max_size = ' . ini_get('post_max_size') . "\n";
  56. echo 'post_max_size+1 = ' . (ini_get('post_max_size')+1) . "\n";
  57. echo 'post_max_size in bytes = ' . devuelve_bytes(ini_get('post_max_size'));
  58.  
  59. function devuelve_bytes($val) {
  60.     $val = trim($val);
  61.     $last = strtolower($val[strlen($val)-1]);
  62.     switch($last) {
  63.         //
  64.         case 'g':
  65.             $val *= 1024;
  66.         case 'm':
  67.             $val *= 1024;
  68.         case 'k':
  69.             $val *= 1024;
  70.     }
  71.     return $val;
  72. }
  73. ?>
  74. </pre>
  75. </div>
  76. </body>
  77. </html>
  78. <?php
  79.  
  80. ########################################
  81. function debug(){
  82. //echo "\n\n\n<!-- variables \n";
  83. echo "_SERVER\n";
  84. foreach ($_SERVER as $indice=>$str){
  85. $$indice =  $str ;
  86. echo "$indice = ". htmlentities($str) . "\n";
  87. }
  88. echo "_POST\n";
  89. foreach ($_POST as $indice=>$str){
  90. $$indice =  $str ;
  91. echo "$indice = $str \n";
  92. }
  93. echo "_GET\n";
  94. foreach ($_GET as $indice=>$str){
  95. $$indice =  $str ;
  96. echo "$indice = $str \n";
  97. }
  98. echo "_COOKIE\n";
  99. foreach ($_COOKIE as $indice=>$str){
  100. $$indice =  $str ;
  101. echo "$indice = $str \n";
  102. }
  103. echo "_SESSION\n";
  104. foreach ($_SESSION as $indice=>$str){
  105. $$indice =  $str ;
  106. echo "$indice = $str \n";
  107. }
  108. //echo "-->";
  109. }
  110. ?>

Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.