⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dbg-wizard.php

📁 the nettraffic system is compiled in the form of cliet and server.the system can check about all the
💻 PHP
📖 第 1 页 / 共 2 页
字号:
<?php    /*$Id: dbg-wizard.php,v 1.01 2007/03/12 01:27:42 snichol Exp $NuSphere PHP Debugger (DBG) Helper script Copyright (c) 2007 NuSphere CorporationThis library is free software; you can redistribute it and/ormodify it under the terms of the GNU Lesser General PublicLicense as published by the Free Software Foundation; eitherversion 2.1 of the License, or (at your option) any later version.This library is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNULesser General Public License for more details.You should have received a copy of the GNU Lesser General PublicLicense along with this library; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USAIf you have any questions or comments, please contact:NuSphere Corporationhttp://www.nusphere.com*/?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Cache-Control" content="no-cache"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta http-equiv="content-language" content="en"><meta name="author" content="NuSphere Corporation"><meta http-equiv="Reply-to" content="sales@nusphere.com"><meta name="generator" content="PhpED 4.5"><meta name="description" content="NuSphere PHP Debugger (DBG) Helper script"><meta name="revisit-after" content="15 days"><STYLE TYPE="text/css"><!-- body {font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 10pt;text-align: left;color: #444444;margin: 0px;}div.text_desc {    border-color: gray;    border-style: solid;    border-width: thin;    text-align: left;    margin-top: 2px;}    H1, H3, H4, H5, H6, H7 {font-family: Verdana, Arial, Helvetica, sans-serif;font-weight: bold;font-size: 13pt;text-align: center;color: #444444;}H2 {font-family: Verdana, Arial, Helvetica, sans-serif;font-weight: bold;font-size: 8pt;text-align: left;color: #444444;}P {font-size: 100%;font-family: Verdana, Arial, Helvetica, sans-serif;text-align: justify;color: #444444; padding-left: 1pixels;    padding-right: 1pixels;}UL.plain {list-style-type: disc;font-family: Verdana, Arial, Helvetica, sans-serif;text-align: left;color: #444444;font-weight: normal;font-style: normal;}UL.plain LI {list-style-type: disc;text-decoration:none;}strong { font-weight: bold;}.headline-link {font-size: 12pt;font-family: Arial Narrow, Arial, Helvetica, sans-serif;text-align: left;line-height:33px; font-weight:300;color: #FF8000;font-style: normal;font-weight: bold;text-decoration:none;}a.headline-link:link {text-decoration:none;}}--> </STYLE><title>NuSphere PHP Debugger (DBG) Helper</title></head><body><h1>   Thank you for using NuSphere! I am your DBG (PHP Debugger) Helper Script. </h1><div class="text_desc"><p>I will try to help you with setting up your PhpED project and installing DBG - NuSpherePHP Debugger. I'll do my best and suggest the ways to configure things, but if you still having problems, please don't forget:NuSphere's team is committed to making you successful. Here is the list of resources you can use:<ul class="plain"><li> <a class="headline-link" href="http://support.nusphere.com/index.php">NuSphere Support Forums</a></li><li> <a class="headline-link" href="http://support.nusphere.com/viewtopic.php?t=2135"> Overview of DBG debugger and Project Mappings </a></li><li> <a class="headline-link" href="http://support.nusphere.com/viewtopic.php?t=576 "> DBG debugger installation on the server </a></li><li> and you can always ask us a question using <a class="headline-link" href="http://shop.nusphere.com/contact_us/index.php "> NuSphere Contact Us Form</a></li></ul> </P></div><!-- Begin System INFO --><div class="text_desc"><h1> What did I find out about your system </h1><p>I assume that you placed me in the directory of your main php scriptand on your PhpED machine pointed your browser to me - like this: <i>&lt;URL of your web site&gt;</i>/dbg-wizard.php</P>  <p>I see that:<?php     //Grab system info function is_ssl() {if ( !isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) != 'on' )    return false;else   return true;}function is_thread_safety_enabled() {    ob_start();   phpinfo(INFO_GENERAL);          $string = ob_get_contents();   ob_end_clean();          $pieces = explode("<h2", $string);      $settings = array();      foreach($pieces as $val)   {       preg_match("/<a name=\"module_([^<>]*)\">/", $val, $sub_key);              preg_match_all("/<tr[^>]*>                                           <td[^>]*>(.*)<\/td>                                           <td[^>]*>(.*)<\/td>/Ux", $val, $sub);       preg_match_all("/<tr[^>]*>                                           <td[^>]*>(.*)<\/td>                                           <td[^>]*>(.*)<\/td>                                           <td[^>]*>(.*)<\/td>/Ux", $val, $sub_ext);                                      foreach($sub[0] as $key => $val)       {           if (strstr (strip_tags($sub[1][$key]), "Thread")) {                   $result = strip_tags($sub[2][$key]);                   return $result == "enabled ";           }       }       return false;                 }}  function is_32bit() {    $a=0x7FFFFFFFFF;    if (($a >> 24) == 0x7FFF) {    return false;    } else {    return true;    }}    function parsePHPModules() {  ob_start(); phpinfo(INFO_MODULES); $s = ob_get_contents(); ob_end_clean();  $s = strip_tags($s,'<h2><th><td>'); $s = preg_replace('/<th[^>]*>([^<]+)<\/th>/',"<info>\\1</info>",$s); $s = preg_replace('/<td[^>]*>([^<]+)<\/td>/',"<info>\\1</info>",$s); $vTmp = preg_split('/(<h2>[^<]+<\/h2>)/',$s,-1,PREG_SPLIT_DELIM_CAPTURE); $vModules = array(); for ($i=1;$i<count($vTmp);$i++) {  if (preg_match('/<h2>([^<]+)<\/h2>/',$vTmp[$i],$vMat)) {   $vName = trim($vMat[1]);   $vTmp2 = explode("\n",$vTmp[$i+1]);   foreach ($vTmp2 AS $vOne) {   $vPat = '<info>([^<]+)<\/info>';   $vPat3 = "/$vPat\s*$vPat\s*$vPat/";   $vPat2 = "/$vPat\s*$vPat/";   if (preg_match($vPat3,$vOne,$vMat)) { // 3cols     $vModules[$vName][trim($vMat[1])] = array(trim($vMat[2]),trim($vMat[3]));    } elseif (preg_match($vPat2,$vOne,$vMat)) { // 2cols     $vModules[$vName][trim($vMat[1])] = trim($vMat[2]);    }    }      }  }  return $vModules;}function getModuleSetting($pModuleName,$pSetting) {        $vModules = parsePHPModules();        return $vModules[$pModuleName][$pSetting];}     function is_zend_extension_ts($php_ini) {        $array_lines = file($php_ini);        $section = '';        foreach ($array_lines as $filedata)        {            $dataline = trim($filedata);            $firstchar = substr($dataline, 0, 1);            $commentchar = ";";            if ($firstchar!=$commentchar && $dataline!='' &&                substr( $dataline, 0, strlen( "zend_extension" ) ) === "zend_extension")                 return true;                        }        return false;     }    $php_version_string = phpversion();    $php_version = explode('.', phpversion());    $dbg_module_version = $php_version[0].".".$php_version[1]."."."x";                $webserver = $_SERVER['SERVER_SOFTWARE'];

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -