通常
  1. ob_start(); phpinfo();
  2. $i = ob_get_contents();
  3. ob_end_clean();
  4. $html = str_replace(
  5. "module_Zend Optimizer", "module_Zend_Optimizer",
  6. preg_replace('%^.*.*$%ms', '$1', $i)
  7. );
  8. $html = str_replace(' width="600"', '', $html);
  9. $str = <<
  10. STR;
  11. echo $str;
复制代码


08-29 05:24