<?php
ob_start();
phpinfo();


preg_match ('%<style type="text/css">(.*?)</style>.*?(<body>.*</body>)%s', ob_get_clean(), $matches);


# $matches [1]; # Style information
# $matches [2]; # Body information


echo "<div class='phpinfodisplay'><style type='text/css'>\n",

join( "\n",
array_map(
create_function(
'$i',
'return “.phpinfodisplay " . preg_replace( «/,/», “,.phpinfodisplay ", $i );'
),
preg_split( '/\n/', $matches[1] )
)
),
"</style>\n",
$matches[2],
"\n</div>\n";

?>


 
Комментариев нет. [Показать комментарии/форму]






© Мир Гладиаторов, 2005-2008 г.
Все права защищены
Форум     Голосование     Реклама     FAQ    
Дневник     Developers