本文整理汇总了PHP中ErrMsgText类的典型用法代码示例。如果您正苦于以下问题:PHP ErrMsgText类的具体用法?PHP ErrMsgText怎么用?PHP ErrMsgText使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ErrMsgText类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($errcode, $a1 = null, $a2 = null, $a3 = null, $a4 = null, $a5 = null)
{
// make sure everything is assigned properly
$errtxt = new ErrMsgText();
JpGraphError::SetTitle('JpGraph Error: ' . $errcode);
parent::__construct($errtxt->Get($errcode, $a1, $a2, $a3, $a4, $a5), 0);
}
开发者ID:amenadiel,项目名称:jpgraph,代码行数:7,代码来源:JpGraphExceptionL.php
示例2: die
die($msg);
} else {
define('TTF_DIR', $sroot . '/fonts/');
}
} else {
define('TTF_DIR', '/usr/share/fonts/truetype/');
}
}
//
// Setup path for MultiByte TTF fonts (japanese, chinese etc.)
//
if (!defined('MBTTF_DIR')) {
if (strstr(PHP_OS, 'WIN')) {
$sroot = getenv('SystemRoot');
if (empty($sroot)) {
$t = new ErrMsgText();
$msg = $t->Get(12, $file, $lineno);
die($msg);
} else {
define('MBTTF_DIR', $sroot . '/fonts/');
}
} else {
define('MBTTF_DIR', '/usr/share/fonts/truetype/');
}
}
//
// Check minimum PHP version
//
function CheckPHPVersion($aMinVersion)
{
list($majorC, $minorC, $editC) = preg_split('/[\\/.-]/', PHP_VERSION);
开发者ID:nbgmaster,项目名称:happify,代码行数:31,代码来源:jpgraph.php
示例3: Headers
function Headers()
{
// In case we are running from the command line with the client version of
// PHP we can't send any headers.
$sapi = php_sapi_name();
if ($sapi == 'cli') {
return;
}
// These parameters are set by headers_sent() but they might cause
// an undefined variable error unless they are initilized
$file = '';
$lineno = '';
if (headers_sent($file, $lineno)) {
$file = basename($file);
$t = new ErrMsgText();
$msg = $t->Get(10, $file, $lineno);
die($msg);
}
if ($this->expired) {
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
}
header("Content-type: image/{$this->img_format}");
}
开发者ID:giovanny751,项目名称:sst,代码行数:26,代码来源:gd_image.inc.php
示例4: RaiseL
function RaiseL($errnbr, $a1 = null, $a2 = null, $a3 = null, $a4 = null, $a5 = null)
{
global $__jpg_err;
$t = new ErrMsgText();
$msg = $t->Get($errnbr, $a1, $a2, $a3, $a4, $a5);
$tmp = new $__jpg_err();
$tmp->Raise($msg);
}
开发者ID:BackupTheBerlios,项目名称:mercuryb-svn,代码行数:8,代码来源:jpgraph_errhandler.inc.php
示例5: RaiseL
public static function RaiseL($errnbr, $a1 = null, $a2 = null, $a3 = null, $a4 = null, $a5 = null)
{
$t = new ErrMsgText();
$msg = $t->Get($errnbr, $a1, $a2, $a3, $a4, $a5);
self::$__jpg_err->Raise($msg);
}
开发者ID:Nerus87,项目名称:PsychoStats,代码行数:6,代码来源:jpgraph_errhandler.inc.php
注:本文中的ErrMsgText类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论