当前位置: 首页>>代码示例>>PHP>>正文


PHP print_debug函数代码示例

本文整理汇总了PHP中print_debug函数的典型用法代码示例。如果您正苦于以下问题:PHP print_debug函数的具体用法?PHP print_debug怎么用?PHP print_debug使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了print_debug函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: generateUriFromPath

 public function generateUriFromPath($path)
 {
     global $base_url;
     $result = $base_url . 'tiki-webdav.php/Wiki%20Pages' . implode('/', array_map('rawurlencode', explode('/', $path)));
     print_debug("generateUriFromPath({$path}): {$result}\n");
     return $result;
 }
开发者ID:rjsmelo,项目名称:tiki,代码行数:7,代码来源:Wiki.php

示例2: sql_run

function sql_run($sql)
{
    if (!mysql_query($sql)) {
        print_debug("MySQL error: " . mysql_error());
        return 0;
    }
    return 1;
}
开发者ID:scriptzteam,项目名称:SCENE-SCRiPTS,代码行数:8,代码来源:genpng.php

示例3: generateUriFromPath

 public function generateUriFromPath($path)
 {
     global $base_url;
     $filegallib = TikiLib::lib('filegal');
     $result = $base_url . 'tiki-webdav.php' . implode('/', array_map('rawurlencode', explode('/', $path)));
     print_debug("generateUriFromPath({$path}): {$result}\n");
     return $result;
 }
开发者ID:rjsmelo,项目名称:tiki,代码行数:8,代码来源:File.php

示例4: error_handler

/**
 * @param $errno
 * @param $errmsg
 * @param $filename
 * @param $linenum
 * @param $vars
 */
function error_handler($errno, $errmsg, $filename, $linenum, $vars)
{
    print_debug("\n=== ERROR ===\n");
    print_debug("{$filename}\n{$linenum}\n{$errmsg}\n");
    print_debug("\n===  BACTRACE ===\n");
    print_debug(print_r(debug_backtrace(false), true));
    print_debug("\n===  BACTRACE END ===\n");
    print_debug("\n=== ERROR END ===\n");
}
开发者ID:linuxwhy,项目名称:tiki-1,代码行数:16,代码来源:tiki-webdav.php

示例5: generateUriFromPath

 public function generateUriFromPath($path)
 {
     global $base_url;
     global $filegallib;
     require_once 'lib/filegals/filegallib.php';
     $result = $base_url . 'tiki-webdav.php' . implode('/', array_map('rawurlencode', explode('/', $path)));
     print_debug("generateUriFromPath({$path}): {$result}\n");
     return $result;
 }
开发者ID:jkimdon,项目名称:cohomeals,代码行数:9,代码来源:File.php

示例6: db_get_stock_almacen

 function db_get_stock_almacen($id_almacen)
 {
     $tbl = $this->tbl;
     $query = "SELECT a.almacenes\r\n\t\t\t\t\t    ,a.clave_corta as clave_almacen\r\n\t\t\t\t\t    ,pa.pasillos\r\n\t\t\t\t\t    ,pa.clave_corta as clave_pasillo\r\n\t\t\t\t\t    ,ag.gavetas\r\n\t\t\t\t\t    ,ag.clave_corta as clave_gabeta\r\n\t\t\t\t\t    ,er.num_factura\r\n\t\t\t\t\t    ,er.fecha_factura\r\n\t\t\t\t\t    ,er.descuento\r\n\t\t\t\t\t    ,er.subtotal\r\n\t\t\t\t\t    ,er.impuesto\r\n\t\t\t\t\t    ,er.total\r\n\t\t\t\t\t    ,er.n_orden\r\n\t\t\t\t\t    ,er.tipo_orden\r\n\t\t\t\tFROM {$tbl['almacen_stock']} s\r\n\t\t\t\tLEFT JOIN {$tbl['almacen_almacenes']} a on a.id_almacen_almacenes = s.id_almacen\r\n\t\t\t\tLEFT JOIN {$tbl['almacen_pasillos']} pa on pa.id_almacen_pasillos = s.id_pasillo\r\n\t\t\t\tLEFT JOIN {$tbl['almacen_gavetas']} ag on ag.id_almacen_gavetas = s.id_gaveta\r\n\t\t\t\tLEFT JOIN (SELECT\r\n\t\t\t\t\t\t\t\t er.id_almacen_entradas_recepcion\r\n\t\t\t\t\t\t\t\t,er.num_factura\r\n\t\t\t\t\t\t\t\t,er.fecha_factura\r\n\t\t\t\t\t\t\t\t,er.descuento\r\n\t\t\t\t\t\t\t\t,er.subtotal\r\n\t\t\t\t\t\t\t\t,er.impuesto\r\n\t\t\t\t\t\t\t\t,er.total\r\n\t\t\t\t\t\t\t\t,co.orden_num as n_orden\r\n\t\t\t\t\t\t\t\t,ot.orden_tipo as tipo_orden\r\n\t\t\t\t\t\t\tFROM {$tbl['almacen_entradas_recibir']} er\r\n\t\t\t\t\t\t\tLEFT JOIN {$tbl['compras_ordenes']} co on co.id_compras_orden = er.id_compras_orden\r\n\t\t\t\t\t\t\tLEFT JOIN {$tbl['compras_ordenes_tipo']} ot on ot.id_orden_tipo = co.id_orden_tipo) er on (er.id_almacen_entradas_recepcion = s.id_almacen_entradas_recepcion)\r\n\t\t\t\tLEFT JOIN (SELECT o.num_orden\r\n\t\t\t\t\t       FROM {$tbl['compras_ordenes_articulos']} oa\r\n\t\t\t\t\t       LEFT JOIN {$tbl['compras_ordenes']} o on o.id_compras_orden = oa.id_compras_orden) oa on \r\n\t\t\t\tWHERE s.activo = 1 AND s.id_almacen = {$id_almacen}\r\n\t\t\t\tGROUP BY s.id_almacen, pa.pasillos, ag.gavetas, er.num_factura";
     print_debug($query);
     $query = $this->db->query($query);
     if ($query->num_rows >= 1) {
         return $query->result_array();
     }
 }
开发者ID:minorusal,项目名称:admin_salon,代码行数:10,代码来源:reportes_model.php

示例7: exec_command

function exec_command($cmd)
{
    $ast = str_repeat("*", 10);
    ob_start();
    system($cmd, $out);
    $ris = ob_get_contents();
    ob_end_clean();
    print_debug("{$ast}\t ESECUZIONE COMANDO {$cmd} con RETURN CODE {$out}\t{$ast}\n");
    print_debug($arr);
    print_debug("{$ast}{$ast}\tRISULTATO EXEC\t{$ast}{$ast}\n{$ris}\n{$ast}{$ast} FINE ESECUZIONE COMANDO {$ast}{$ast}\n");
}
开发者ID:mamogmx,项目名称:praticaweb-alghero,代码行数:11,代码来源:debugutils.php

示例8: index

 function index()
 {
     $GLOBALS['phpgw_info']['flags']['currentapp'] = 'email';
     print_debug('relevant phpgw_info data', $GLOBALS['phpgw_info']['user']['preferences']['email']);
     $this->bo = CreateObject('email.boindex');
     $this->bo->index_data();
     if ($GLOBALS['phpgw']->msg->phpgw_before_xslt) {
         $this->index_old_tpl();
     } else {
         $this->index_xslt_tpl();
     }
 }
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:12,代码来源:class.uiindex.inc.php

示例9: checksum

function checksum($sum, $value)
{
    if (!is_numeric($value)) {
        if (!is_null($value)) {
            print_debug("Not a number value:\n" . var_export($value, true) . "\n");
            exit_error("Not a number value\n");
        }
    } else {
        print_debug("Add to sum: " . $value . "\n");
        $sum += $value;
    }
    return $sum;
}
开发者ID:skokhanovskiy,项目名称:curljson,代码行数:13,代码来源:curljson.php

示例10: authorize

 public function authorize($user, $path, $access = self::ACCESS_READ)
 {
     global $tikilib;
     print_debug("authorize " . $user . " " . $path . " " . $access . "\n");
     if ($path === '/') {
         return true;
     }
     $page = substr($path, 1);
     $groups = $tikilib->get_user_groups($user);
     $perms = Perms::getInstance();
     $perms->setGroups($groups);
     $perms = $tikilib->page_exists($page) ? Perms::get(array('type' => 'wiki page', 'object' => substr($path, 1))) : Perms::get();
     return $access === self::ACCESS_READ && $perms->view || $access === self::ACCESS_WRITE && $perms->edit;
 }
开发者ID:jkimdon,项目名称:cohomeals,代码行数:14,代码来源:Wiki.php

示例11: db_insert_data

 public function db_insert_data($data = array())
 {
     print_debug($data);
     // DB Info
     $tbl = $this->tbl;
     // Query
     $existe = $this->row_exist($tbl['administracion_regiones'], array('clave_corta' => $data['clave_corta']));
     if (!$existe) {
         $query = $this->db->insert_item($tbl['administracion_regiones'], $data, true);
         return $query;
     } else {
         return false;
     }
 }
开发者ID:erick120191,项目名称:adminplayidea,代码行数:14,代码来源:regiones_model.php

示例12: row_exist

 public function row_exist($table, $row, $debug = false)
 {
     $this->db->select();
     $this->db->from($table);
     $this->db->where($row);
     $query = $this->db->get();
     if ($debug) {
         print_debug($query->result_array());
     }
     if ($query->num_rows >= 1) {
         return true;
     } else {
         return false;
     }
 }
开发者ID:minorusal,项目名称:administrador,代码行数:15,代码来源:Base_Model.php

示例13: custom_port_parser

function custom_port_parser($port)
{
    global $config;
    print_debug($port['ifAlias']);
    // Pull out Type and Description or abort
    if (!preg_match('/^([^:]+):([^\\[\\]\\(\\)\\{\\}]+)/', $port['ifAlias'], $matches)) {
        return array();
    }
    // Munge and Validate type
    $types = array('core', 'peering', 'transit', 'cust', 'server', 'l2tp');
    foreach ($config['int_groups'] as $custom_type) {
        $types[] = strtolower(trim($custom_type));
    }
    $type = strtolower(trim($matches[1], " \t\n\r\v\\/\"'"));
    if (!in_array($type, $types)) {
        return array();
    }
    # Munge and Validate description
    $descr = trim($matches[2]);
    if ($descr == '') {
        return array();
    }
    if (preg_match('/\\{(.*)\\}/', $port['ifAlias'], $matches)) {
        $circuit = $matches[1];
    }
    if (preg_match('/\\[(.*)\\]/', $port['ifAlias'], $matches)) {
        $speed = $matches[1];
    }
    if (preg_match('/\\((.*)\\)/', $port['ifAlias'], $matches)) {
        $notes = $matches[1];
    }
    $port_ifAlias = array();
    $port_ifAlias['type'] = $type;
    $port_ifAlias['descr'] = $descr;
    $port_ifAlias['circuit'] = $circuit;
    $port_ifAlias['speed'] = $speed;
    $port_ifAlias['notes'] = $notes;
    if (OBS_DEBUG > 1) {
        print_vars($port_ifAlias);
    }
    return $port_ifAlias;
}
开发者ID:rhizalpatrax64bit,项目名称:StacksNetwork,代码行数:42,代码来源:port-descr-parser.inc.php

示例14: float_cmp

function float_cmp($a, $b, $epsilon = NULL)
{
    $epsilon = is_numeric($epsilon) ? (double) $epsilon : 1.0E-5;
    // Default epsilon for float compare
    $compare = FALSE;
    $both = 0;
    // Convert to float if possible
    if (is_numeric($a)) {
        $a = (double) $a;
        $both++;
    }
    if (is_numeric($b)) {
        $b = (double) $b;
        $both++;
    }
    if ($both === 2) {
        // Compare numeric variables as float numbers
        if (abs(($a - $b) / $b) < $epsilon) {
            $compare = 0;
            // Float numbers same
        }
        if (OBS_DEBUG > 1) {
            print_debug('比较浮点数: "' . $a . '" with "' . $b . '", epsilon: "' . $epsilon . '", comparision: "' . abs(($a - $b) / $b) . ' < ' . $epsilon . '", numbers: ' . ($compare === 0 ? 'SAME' : 'DIFFERENT'));
        }
    } else {
        // All other compare as usual
        if ($a === $b) {
            $compare = 0;
            // Variables same
        }
    }
    if ($compare === FALSE) {
        // Compare if variables not same
        if ($a > $b) {
            $compare = 1;
            // $a greater than $b
        } else {
            $compare = -1;
            // $a less than $b
        }
    }
    return $compare;
}
开发者ID:rhizalpatrax64bit,项目名称:StacksNetwork,代码行数:43,代码来源:functions.inc.php

示例15: print_debug

     case 'nwhrStorageMSEngineMemory':
     case 'nwhrStorageUnclaimedMemory':
         $deny = TRUE;
         break;
 }
 if (isset($config['ignore_mount_removable']) && $config['ignore_mount_removable'] && $fstype == "hrStorageRemovableDisk") {
     $deny = TRUE;
     print_debug("skip(removable)");
 }
 if (isset($config['ignore_mount_network']) && $config['ignore_mount_network'] && $fstype == "hrStorageNetworkDisk") {
     $deny = TRUE;
     print_debug("skip(network)");
 }
 if (isset($config['ignore_mount_optical']) && $config['ignore_mount_optical'] && $fstype == "hrStorageCompactDisc") {
     $deny = TRUE;
     print_debug("skip(cd)");
 }
 if (!$deny) {
     //32bit counters
     $size = snmp_dewrap32bit($storage['hrStorageSize']) * $units;
     $used = snmp_dewrap32bit($storage['hrStorageUsed']) * $units;
     $path = rewrite_storage($descr);
     // Find index from 'UCD-SNMP-MIB::dskTable'
     foreach ($cache_discovery['ucd-snmp-mib'] as $dsk) {
         if ($dsk['dskPath'] === $path) {
             // Using 64bit counters if available
             if (isset($dsk['dskTotalLow'])) {
                 $dsk['units'] = 1024;
                 $dsk['size'] = $dsk['dskTotalHigh'] * 4294967296.0 + $dsk['dskTotalLow'];
                 $dsk['size'] *= $dsk['units'];
                 if ($dsk['size'] - $size > $units) {
开发者ID:rhizalpatrax64bit,项目名称:StacksNetwork,代码行数:31,代码来源:host-resources-mib.inc.php


注:本文中的print_debug函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。