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


PHP Ini_Set函数代码示例

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


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

示例1: Ini_Set

		<h4 class="panel-title exoextralight"
		<?php 
Ini_Set('display_errors', true);
include '../../init.php';
include 'functions.php';
$transcodeSessions = getTranscodeSessions();
if ($transcodeSessions > 0) {
    echo ' style="margin-left:23px"';
}
?>
		>
		<?php 
if ($transcodeSessions > 0) {
    echo '<span id="transcodeSessions" class="badge pull-right" rel="tooltip" data-toggle="tooltip" data-placement="bottom" title="Transcode Sessions" style="width:23px">' . $transcodeSessions . '</span>';
}
?>
		Load
		</h4>
		<script>
			// Enable bootstrap tooltips
			$(function ()
			        { $("[rel=tooltip]").tooltip();
			        });
		</script>
开发者ID:maaximal,项目名称:Network-Status-Page,代码行数:24,代码来源:transcode_sessions_ajax.php

示例2: array

 * Configure system environment and handle all users requests.
 * 
 * @author Vitaly Velikodny
 */
#-------------------------------------------------------------------------------
$GLOBALS['__MESSAGES'] = array();
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# счётчики для отладки
$GLOBALS['__COUNTER_MYSQL'] = 0;
$GLOBALS['__TIME_MYSQL'] = 0;
$GLOBALS['__COUNTER_COMPS'] = 0;
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
if (!Ini_Get('date.timezone')) {
    @Ini_Set('date.timezone', 'Europe/Moscow');
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
list($Micro, $Seconds) = Explode(' ', MicroTime());
#-------------------------------------------------------------------------------
if (!Define('START_TIME', (double) $Micro + (double) $Seconds)) {
    exit('[JBs core]: не удалось определить константу (START_TIME)');
}
#-------------------------------------------------------------------------------
unset($Micro, $Seconds);
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
Header('X-Powered-By: Joonte Billing System (http://www.joonte.com)');
Header('Cache-Control: no-cache, must-revalidate');
Header('Content-Type: text/html; charset=utf-8');
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:Load.php

示例3: Ini_Set

<?php

@Set_Time_Limit(10000);
Ini_Set("track_errors", "1");
Ignore_User_Abort(true);
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
$RIGHT_SIGN = $USER->CanDoOperation('security_file_verifier_sign');
$RIGHT_COLLECT = $USER->CanDoOperation('security_file_verifier_collect');
$RIGHT_VERIFY = $USER->CanDoOperation('security_file_verifier_verify');
if (!$RIGHT_SIGN && !$RIGHT_COLLECT && !$RIGHT_VERIFY) {
    $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
IncludeModuleLangFile(__FILE__);
/*************************************************************************************************/
/*************************************************************************************************/
Define("BX_FILE_CHECKER_REGION_KERNEL", 1);
Define("BX_FILE_CHECKER_REGION_ROOT", 2);
Define("BX_FILE_CHECKER_REGION_PERSONAL_ROOT", 4);
Define("BX_FILE_CHECKER_REGION_PUBLIC", 8);
if (!defined("START_EXEC_TIME")) {
    define("START_EXEC_TIME", getmicrotime());
}
class CFileChecker
{
    var $arCollectedExtensions;
    var $startPath;
    var $serverFileErrorLogName = "serverfilerr";
    var $serverErrorLog;
    var $serverErrorLogHandle;
    var $fileLog;
    var $fileErrorLog;
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:security_file_verifier.php

示例4: Ini_Set

<?php

// You should move the config.ini outside the web directory.
$config_file_path = "/opt/config/config.ini";
// Path to config file, replace the expression after the "=" sign. Don't forget to leave the ";" at the end of the line. You should place it outside of web root
// Don't forget to make sure this is set properly...
Ini_Set('display_errors', false);
include 'init.php';
include 'lib/phpseclib0.3.5/Net/SSH2.php';
require_once 'MinecraftServerStatus.class.php';
if (!file_exists($config_file_path)) {
    $config_file_path = "../../config.ini";
}
$config = parse_ini_file($config_file_path, true);
// Import variables from config file
// Network Details
$local_server_ip = $config['network_details']['local_server_ip'];
$wan_domain = $config['network_details']['wan_domain'];
$wan1_ip = $config['network_details']['wan1_ip'];
$wan2_ip = $config['network_details']['wan2_ip'];
$ping_ip = $config['network_details']['ping_ip'];
// Weather
$weather_always_display = $config['weather']['weather_always_display'];
$weather_lat = $config['weather']['weather_lat'];
$weather_long = $config['weather']['weather_long'];
$weather_name = $config['weather']['weather_name'];
$forecast_api = $config['weather']['forecast_api'];
$weather_units = $config['weather']['weather_units'];
// Misc
//$trakt_username = $config['misc']['trakt_username'];
//$trakt_api_key = $config['misc']['trakt_api_key'];
开发者ID:ShakataGaNai,项目名称:Network-Status-Page,代码行数:31,代码来源:functions.php


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