• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP php_ini_scanned_files函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: collectConfigurationFiles

function collectConfigurationFiles()
{
    $files = array(php_ini_loaded_file());
    $scannedFiles = php_ini_scanned_files();
    if ($scannedFiles) {
        foreach (explode(',', $scannedFiles) as $file) {
            array_push($files, trim($file));
        }
    }
    return $files;
}
开发者ID:Hensyy,项目名称:mysite,代码行数:11,代码来源:_intellij_phpdebug_validator.php


示例2: getAll

 /**
  * Returns an array of php.ini locations with at least one entry
  *
  * The equivalent of calling php_ini_loaded_file then php_ini_scanned_files.
  * The loaded ini location is the first entry and may be empty.
  * @return array
  */
 public static function getAll()
 {
     if ($env = strval(getenv(self::ENV_ORIGINAL))) {
         return explode(PATH_SEPARATOR, $env);
     }
     $paths = array(strval(php_ini_loaded_file()));
     if ($scanned = php_ini_scanned_files()) {
         $paths = array_merge($paths, array_map('trim', explode(',', $scanned)));
     }
     return $paths;
 }
开发者ID:Rudloff,项目名称:composer,代码行数:18,代码来源:IniHelper.php


示例3: execute

 public function execute()
 {
     if ($filelist = php_ini_scanned_files()) {
         echo "Loaded ini files:\n";
         if (strlen($filelist) > 0) {
             $files = explode(',', $filelist);
             foreach ($files as $file) {
                 echo " - " . trim($file) . "\n";
             }
         }
     }
 }
开发者ID:WebDevJL,项目名称:phpbrew,代码行数:12,代码来源:ListIniCommand.php


示例4: createExtensionHint

 private function createExtensionHint()
 {
     $paths = array();
     if (($iniPath = php_ini_loaded_file()) !== false) {
         $paths[] = $iniPath;
     }
     if (!defined('HHVM_VERSION') && ($additionalIniPaths = php_ini_scanned_files())) {
         $paths = array_merge($paths, array_map("trim", explode(",", $additionalIniPaths)));
     }
     if (count($paths) === 0) {
         return '';
     }
     $text = "\n  To enable extensions, verify that they are enabled in those .ini files:\n    - ";
     $text .= implode("\n    - ", $paths);
     $text .= "\n  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.";
     return $text;
 }
开发者ID:yan96in,项目名称:composer,代码行数:17,代码来源:SolverProblemsException.php


示例5: phpInfos

 public static function phpInfos()
 {
     $php = array();
     $php['version'] = phpversion();
     $iniVars = ini_get_all();
     $loadedExtensions = get_loaded_extensions();
     // $ext = new ReflectionExtension('mysqli');
     // $ext->info();
     $memoryPeak = memory_get_peak_usage();
     $memoryUsage = memory_get_usage();
     $iniLoaded = php_ini_loaded_file();
     $iniScanned = php_ini_scanned_files();
     $symfony = new Symfony();
     $symfony->initRequirements();
     $symfony->initOptionalRequirements();
     $majesteel = new MajesTeel();
     $majesteel->initRequirements();
     $majesteel->initOptionalRequirements();
     Flight::render('templates/phpInfos.tpl', array('php' => $php, 'iniVars' => $iniVars, 'loadedExtensions' => $loadedExtensions, 'memoryPeak' => $memoryPeak, 'memoryUsage' => $memoryUsage, 'iniLoaded' => $iniLoaded, 'iniScanned' => $iniScanned, 'symfony' => $symfony, 'majesteel' => $majesteel));
 }
开发者ID:purplebabar,项目名称:whatdaserv,代码行数:20,代码来源:IndexController.php


示例6: array_merge

<?php

/**
 * @internal
 */
$iniFiles = array_merge(($tmp = php_ini_loaded_file()) === FALSE ? array() : array($tmp), strlen($tmp = php_ini_scanned_files()) ? explode(",\n", trim($tmp)) : array());
$extensions = get_loaded_extensions();
natcasesort($extensions);
$values = array('PHP binary' => defined('PHP_BINARY') ? PHP_BINARY : '(not available)', 'PHP version' => PHP_VERSION . ' (' . PHP_SAPI . ')', 'Loaded php.ini files' => count($iniFiles) ? implode(', ', $iniFiles) : '(none)', $last = 'Loaded extensions' => count($extensions) ? implode(', ', $extensions) : '(none)');
foreach ($values as $title => $value) {
    echo "[1;32m{$title}[0m\n";
    echo "[1;37m" . str_repeat('-', strlen($title)) . "[0m\n";
    echo $value . "\n";
    echo $title === $last ? '' : "\n\n";
}
开发者ID:petrparolek,项目名称:web_cms,代码行数:15,代码来源:info.php


示例7: defined

<?php

/**
 * @internal
 */
$isPhpDbg = defined('PHPDBG_VERSION');
$isHhvm = defined('HHVM_VERSION');
$extensions = get_loaded_extensions();
natcasesort($extensions);
$info = (object) ['binary' => defined('PHP_BINARY') ? PHP_BINARY : NULL, 'version' => PHP_VERSION, 'phpDbgVersion' => $isPhpDbg ? PHPDBG_VERSION : NULL, 'sapi' => PHP_SAPI, 'hhvmVersion' => $isHhvm ? HHVM_VERSION : NULL, 'iniFiles' => array_merge(($tmp = php_ini_loaded_file()) === FALSE ? [] : [$tmp], function_exists('php_ini_scanned_files') && strlen($tmp = php_ini_scanned_files()) ? explode(",\n", trim($tmp)) : []), 'extensions' => $extensions, 'canMeasureCodeCoverage' => $isPhpDbg || !$isHhvm && in_array('xdebug', $extensions, TRUE)];
if (isset($_SERVER['argv'][1])) {
    echo serialize($info);
    die;
}
foreach (['PHP binary' => $info->binary ?: '(not available)', 'PHP version' . ($isPhpDbg ? '; PHPDBG version' : '') . ($isHhvm ? '; HHVM version' : '') => "{$info->version} ({$info->sapi})" . ($isPhpDbg ? "; {$info->phpDbgVersion}" : '') . ($isHhvm ? "; {$info->hhvmVersion}" : ''), 'Loaded php.ini files' => count($info->iniFiles) ? implode(', ', $info->iniFiles) : ($isHhvm ? '(unable to detect under HHVM)' : '(none)'), 'Loaded extensions' => count($info->extensions) ? implode(', ', $info->extensions) : '(none)'] as $title => $value) {
    echo "[1;32m{$title}[0m:\n{$value}\n\n";
}
echo "\n";
开发者ID:nette,项目名称:tester,代码行数:18,代码来源:info.php


示例8: _debug_DEBUG_YF

 /**
  */
 function _debug_DEBUG_YF(&$params = [])
 {
     if (!$this->SHOW_SETTINGS) {
         return '';
     }
     $cache_use = (main()->USE_SYSTEM_CACHE || conf('USE_CACHE')) && !cache()->NO_CACHE;
     $locale_debug = $this->_get_debug_data('locale');
     $data['yf'] = ['MAIN_TYPE' => MAIN_TYPE, 'LANG' => conf('language'), 'IP' => common()->get_ip(), 'COUNTRY' => conf('country') ?: $_SERVER['GEOIP_COUNTRY_CODE'], 'TIMEZONE' => date_default_timezone_get() . (conf('timezone') ? ', conf: ' . conf('timezone') : ''), 'DEBUG_MODE' => (int) DEBUG_MODE, 'DEV_MODE' => (int) conf('DEV_MODE'), 'REWRITE_MODE' => (int) tpl()->REWRITE_MODE, 'DEBUG_CONSOLE_POPUP' => (int) conf('DEBUG_CONSOLE_POPUP'), 'CACHE_USE' => (int) $cache_use, 'CACHE_NO_CACHE' => (int) cache()->NO_CACHE, 'CACHE_NO_WHY' => cache()->_NO_CACHE_WHY, 'CACHE_DRIVER' => cache()->DRIVER, 'CACHE_NS' => cache()->CACHE_NS, 'CACHE_TTL' => (int) cache()->TTL, 'YF_PATH' => YF_PATH, 'YF_VERSION' => $this->_get_yf_version(), 'APP_PATH' => APP_PATH, 'APP_VERSION' => $this->_get_app_version(), 'PROJECT_PATH' => PROJECT_PATH, 'SITE_PATH' => SITE_PATH, 'ADMIN_SITE_PATH' => ADMIN_SITE_PATH, 'CONFIG_PATH' => CONFIG_PATH, 'STORAGE_PATH' => STORAGE_PATH, 'LOGS_PATH' => LOGS_PATH, 'UPLOADS_PATH' => UPLOADS_PATH, 'WEB_PATH' => WEB_PATH, 'MEDIA_PATH' => MEDIA_PATH, 'ADMIN_WEB_PATH' => ADMIN_WEB_PATH, 'CSS_FRAMEWORK' => conf('css_framework') ?: 'bs2', 'BOOTSTRAP_THEME' => common()->bs_current_theme() ?: $_COOKIE['yf_theme'] ?: (conf('DEF_BOOTSTRAP_THEME_' . strtoupper(MAIN_TYPE)) ?: conf('DEF_BOOTSTRAP_THEME')), 'TPL_DRIVER' => tpl()->DRIVER_NAME, 'TPL_COMPILE' => (int) tpl()->COMPILE_TEMPLATES, 'TPL_THEMES_PATH' => tpl()->_THEMES_PATH, 'TPL_PATH' => tpl()->TPL_PATH, 'TPL_SKIN' => conf('theme'), 'TPL_INHERIT_SKIN' => (string) tpl()->INHERIT_SKIN, 'TPL_INHERIT_SKIN2' => (string) tpl()->INHERIT_SKIN2, 'MAIN_HOSTNAME' => main()->HOSTNAME, 'SITE_ID' => (int) conf('SITE_ID'), 'SERVER_ID' => (int) conf('SERVER_ID'), 'SERVER_ROLE' => _prepare_html(conf('SERVER_ROLE')), 'SERVER_ADDR' => $_SERVER['SERVER_ADDR'], 'SERVER_SELF_IPS' => implode(', ', (array) main()->_server_self_ips), 'USER_ID' => (int) main()->USER_ID, 'USER_GROUP' => (int) main()->USER_GROUP, 'USER_ROLE' => main()->USER_ROLE, 'IS_POST' => (int) main()->is_post(), 'IS_AJAX' => (int) main()->is_ajax(), 'IS_HTTPS' => (int) main()->is_https(), 'IS_CONSOLE' => (int) main()->is_console(), 'IS_REDIRECT' => (int) main()->is_redirect(), 'IS_COMMON_PAGE' => (int) main()->is_common_page(), 'IS_UNIT_TEST' => (int) main()->is_unit_test(), 'IS_SPIDER' => (int) conf('IS_SPIDER'), 'NO_GRAPHICS' => (int) main()->NO_GRAPHICS, 'HTTP_HOST' => $_SERVER['HTTP_HOST'], 'SERVER_PORT' => $_SERVER['SERVER_PORT'], 'REWRITE_DEF_HOST' => _class('rewrite')->DEFAULT_HOST, 'REWRITE_DEF_PORT' => _class('rewrite')->DEFAULT_PORT, 'WEB_DOMAIN' => WEB_DOMAIN, 'REQUEST_URI' => $_SERVER['REQUEST_URI'], 'REQUEST_METHOD' => $_SERVER['REQUEST_METHOD'], 'OUTPUT_CACHING' => (int) main()->OUTPUT_CACHING, 'NO_CACHE_HEADERS' => (int) main()->NO_CACHE_HEADERS, 'HTTP_IN_HEADERS' => $this->_get_request_headers(), 'HTTP_OUT_HEADERS' => headers_list(), 'LOCALE_CURRENT' => $locale_debug['current'], 'LOCALE_VARIANTS' => $locale_debug['variants'], 'LOCALE_DEFAULT' => $locale_debug['default'], 'LOCALE_SYSTEM' => implode(', ', (array) $locale_debug['system'])];
     foreach ((array) $this->_get_debug_data('_DEBUG_META') as $k => $v) {
         $data['yf']['META_' . strtoupper($k)] = $v;
     }
     $ini_all = ini_get_all();
     $ini = ['memory_limit', 'max_execution_time', 'default_socket_timeout', 'max_input_time', 'memory_limit', 'post_max_size', 'upload_max_filesize', 'file_uploads', 'allow_url_fopen', 'error_reporting', 'display_errors'];
     foreach ($ini as $name) {
         $data['ini']['php_ini&nbsp;:&nbsp;' . $name] = $ini_all[$name]['local_value'];
     }
     if (tpl()->COMPRESS_OUTPUT && !main()->NO_GRAPHICS) {
         $c_info = $this->_get_debug_data('compress_output');
         $data['ini'] += ['compress: size original' => $c_info['size_original'] . ' bytes', 'compress: size compressed' => $c_info['size_compressed'] . ' bytes', 'compress: ratio' => ($c_info['size_compressed'] ? round($c_info['size_original'] / $c_info['size_compressed'] * 100, 0) : 0) . '%'];
     }
     $loaded_exts = [];
     foreach (get_loaded_extensions() as $v) {
         $loaded_exts[] = strtolower($v);
     }
     asort($loaded_exts);
     $data['ini'] += ['memory_usage' => function_exists('memory_get_usage') ? memory_get_usage() : 'n/a', 'memory_peak_usage' => function_exists('memory_get_peak_usage') ? memory_get_peak_usage() : 'n/a', 'sys_loadavg' => implode(' | ', sys_getloadavg()), 'db_server_version' => db()->get_server_version(), 'db_host_info' => db()->get_host_info(), 'php_version' => phpversion(), 'php_sapi_name' => php_sapi_name(), 'php_current_user' => get_current_user(), 'php_uname' => php_uname(), 'php_include_path' => get_include_path(), 'php_loaded_extensions' => implode(', ', $loaded_exts), 'php_ini_scanned_files' => function_exists('php_ini_scanned_files') ? php_ini_scanned_files() : ''];
     $data['session']['session_id'] = session_id();
     foreach ((array) ini_get_all('session') as $k => $v) {
         $data['session'][$k] = $v['local_value'];
     }
     $a = $_POST + $_SESSION;
     $body .= form($a, ['action' => url('/test/change_debug'), 'class' => 'form-inline', 'style' => 'padding-left:20px;'])->row_start()->container('Locale edit')->active_box('locale_edit', ['selected' => $_SESSION['locale_vars_edit']])->container('<span style="padding-left:20px;">Debug console light</span>')->active_box('debug_console_light', ['selected' => $_SESSION['debug_console_light']])->row_end()->save(['class' => 'btn btn-default btn-mini btn-xs']);
     foreach ($data as $name => $_data) {
         foreach ($_data as $k => $v) {
             if ($name == 'yf' && ($k == 'YF_VERSION' || $k == 'APP_VERSION')) {
                 continue;
             }
             $_data[$k] = _prepare_html($v);
         }
         $body .= '<div class="span6 col-md-6">' . $this->_show_key_val_table($_data, ['no_total' => 1, 'no_sort' => 1, 'no_escape' => 1]) . '</div>';
     }
     return $body;
 }
开发者ID:yfix,项目名称:yf,代码行数:45,代码来源:yf_debug.class.php


示例9: ssl_insecure_content_fix_nonce_value

/**
* generate nonce value
* @return string
*/
function ssl_insecure_content_fix_nonce_value()
{
    // some system data, difficult to guess unless server environment is already known
    $data = sprintf("%s\n%s\n%s\n%s", php_uname(), php_ini_loaded_file(), php_ini_scanned_files(), implode("\n", get_loaded_extensions()));
    return md5($data);
}
开发者ID:walkthenight,项目名称:walkthenight-wordpress,代码行数:10,代码来源:nonces.php


示例10: array_merge

<?php

/**
 * @internal
 */
$iniFiles = array_merge(($tmp = php_ini_loaded_file()) === FALSE ? array() : array($tmp), function_exists('php_ini_scanned_files') && strlen($tmp = php_ini_scanned_files()) ? explode(",\n", trim($tmp)) : array());
$extensions = get_loaded_extensions();
natcasesort($extensions);
$isHhvm = defined('HHVM_VERSION');
$values = array('PHP binary' => defined('PHP_BINARY') ? PHP_BINARY : '(not available)', 'PHP version' . ($isHhvm ? '; HHVM version' : '') => PHP_VERSION . ' (' . PHP_SAPI . ')' . ($isHhvm ? '; ' . HHVM_VERSION : ''), 'Loaded php.ini files' => count($iniFiles) ? implode(', ', $iniFiles) : ($isHhvm ? '(unable to detect under HHVM)' : '(none)'), $last = 'Loaded extensions' => count($extensions) ? implode(', ', $extensions) : '(none)');
foreach ($values as $title => $value) {
    echo "[1;32m{$title}[0m\n";
    echo "[1;37m" . str_repeat('-', strlen($title)) . "[0m\n";
    echo $value . "\n";
    echo $title === $last ? '' : "\n\n";
}
开发者ID:cujan,项目名称:vcelyweb,代码行数:16,代码来源:info.php


示例11: activate

 private function activate($temp)
 {
     if ($this->args->ini) {
         $files = [$this->args->ini];
     } else {
         $files = array_filter(array_map("trim", explode(",", php_ini_scanned_files())));
         $files[] = php_ini_loaded_file();
     }
     $sudo = isset($this->args->sudo) ? $this->args->sudo : null;
     $type = $this->metadata("type") ?: "extension";
     $activate = new Task\Activate($temp, $files, $type, $this->args->prefix, $this->args["common-name"], $sudo);
     if (!$activate->run($this->verbosity())) {
         $this->info("Extension already activated ...\n");
     }
 }
开发者ID:m6w6,项目名称:pharext,代码行数:15,代码来源:Installer.php


示例12: switch

    echo '<li style="float: left;list-style-type: none; margin: 5px"><a href="?page=' . $handle . '" style="color: black;' . ($page == $handle ? 'font-weight: bold' : '') . '">' . $user_friendly . '</a></li>' . "\n";
}
echo '</ul>' . "\n\n";
echo '<br style="clear: both" />' . "\n\n";
echo '<h2>' . $page_descriptions[$page] . '</h2>' . "\n";
switch ($page) {
    case 'session':
        preint_r($_SESSION);
        break;
    case 'server_vars':
        echo '<h3>$_SERVER</h3>' . "\n";
        preint_r($_SERVER);
        echo '<h3>$_ENV</h3>' . "\n";
        preint_r($_ENV);
        echo '<h3>Loaded ini files:</h3>' . "\n";
        if ($ini_files = php_ini_scanned_files()) {
            if (strlen($ini_files) > 0) {
                preint_r(explode(',', str_replace('\\n', '', $ini_files)));
            } else {
                echo 'Could not find any ini-files...';
            }
        }
        break;
    case 'phpinfo':
        phpinfo();
        break;
    case 'remote_session':
        if (isset($_GET['username']) && mb_strtolower($_GET['username']) != 'borttagen') {
            $query = 'SELECT session_id FROM login WHERE username = "' . $_GET['username'] . '"';
            $result = mysql_query($query) or report_sql_error($query);
            if (mysql_num_rows($result) == 1) {
开发者ID:Rambutan,项目名称:hamsterpaj,代码行数:31,代码来源:handy.php


示例13: array

        $phpExtensionsFailure[] = $extensionName;
    }
}
// -- Directory persmissions
$writableDirectories = array('tmp');
$writableDirectoriesFailure = array();
foreach ($writableDirectories as $directoryName) {
    if (!is_writable(ROOT . DIRECTORY_SEPARATOR . $directoryName)) {
        $writableDirectoriesFailure[] = $directoryName;
    }
}
// @todo check permissions in TV shows and movies folder (needed to downloads subtitles and nfo)
// DISPLAY ERRORS
if (!empty($phpExtensionsFailure)) {
    echo "Missing PHP extensions : " . implode(", ", $phpExtensionsFailure) . "<br />";
    echo "First check if you have enabled these extensions in your php.ini file or any other included files : \n<pre>\n" . implode("\n", explode(", ", php_ini_scanned_files())) . "\n</pre>";
    echo "If needed, you can try to do this :\n<pre>\naptitude install sqlite\n</pre>\nThis should install both sqlite and pdo_sqlite";
    echo "<hr />";
}
if (!empty($writableDirectoriesFailure)) {
    $apacheUser = exec('whoami');
    echo "These directories are not writable by your browser : " . implode(", ", $writableDirectoriesFailure) . "<br />";
    echo "Document root is : " . ROOT . "<br />";
    echo "Apache user : {$apacheUser}<br />";
    echo "You can try to do this :\n<pre>\ncd " . ROOT . "\nchgrp -R {$apacheUser} " . implode(" ", $writableDirectoriesFailure) . "\nchmod -R g+rw " . implode(" ", $writableDirectoriesFailure) . "\n</pre>";
    echo "<hr />";
}
if (!empty($phpExtensionsFailure) or !empty($writableDirectoriesFailure)) {
    echo "<br />";
    echo "Please fix this and retry";
    exit(1);
开发者ID:rangulicon,项目名称:mkvmanager,代码行数:31,代码来源:check.php


示例14: function_exists

                        <i class="fa fa-<?php 
echo function_exists('mcrypt_encrypt') ? 'check fa-icon-color-green' : 'times fa-icon-color-red';
?>
"></i>&nbsp;mcrypt<br />
                        <i class="fa fa-<?php 
echo function_exists('xdebug_get_code_coverage') ? 'check fa-icon-color-green' : 'times fa-icon-color-red';
?>
"></i>&nbsp;XDebug<br />
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-4">PHP .ini Files</div>
                    <div class="col-md-8">
                        <?php 
echo php_ini_loaded_file() . '<br />';
echo php_ini_scanned_files() . '<br />';
?>
                    </div>
                </div>
            </div>
        </div>
        <div id="footer" class="footer">
            <div class="container">
                <p class="muted pull-right"><strong><a href="https://github.com/TimothyDJones/laravel-precise32-php5.4">Laravel Vagrant LAMP Box</a></strong></p>
            </div>

        </div>
        <div class="modal fade" id="phpinfoModal" tabindex="-1" role="dialog" aria-labelledby="basicModal" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
开发者ID:marciocamello,项目名称:laravel-ecommerce,代码行数:31,代码来源:vagrant-phpinfo.php


示例15: getAdditionalInis

 /**
  * Returns true if additional inis were loaded
  *
  * @param array $iniFiles Populated by method
  * @param bool $replace Whether we need to modify the files
  *
  * @return bool
  */
 private function getAdditionalInis(array &$iniFiles, &$replace)
 {
     $replace = true;
     if ($scanned = php_ini_scanned_files()) {
         $list = explode(',', $scanned);
         foreach ($list as $file) {
             $file = trim($file);
             if (preg_match('/xdebug.ini$/', $file)) {
                 // Skip the file, no need for regex replacing
                 $replace = false;
             } else {
                 $iniFiles[] = $file;
             }
         }
     }
     return !empty($scanned);
 }
开发者ID:detain,项目名称:composer,代码行数:25,代码来源:XdebugHandler.php


示例16: var_dump

<?php

var_dump(php_ini_scanned_files());
开发者ID:badlamer,项目名称:hhvm,代码行数:3,代码来源:php_ini_scanned_files.php


示例17: parseConfig

 /**
  * Parse the configuration (php.ini) file
  *
  * @param string $path Path to the string to parse
  * @return array Ini settings
  */
 public function parseConfig($path = null)
 {
     $ini = parse_ini_file(!is_null($path) ? $path : $this->path);
     // pull in settings from other scanned INI files
     $scannedIniList = php_ini_scanned_files();
     if ($scannedIniList !== false) {
         foreach (explode(',', $scannedIniList) as $scannedFile) {
             $scannedIni = parse_ini_file(trim($scannedFile));
             $ini = array_merge($ini, $scannedIni);
         }
     }
     $this->setConfig($ini);
     return $ini;
 }
开发者ID:giuseppemorelli,项目名称:iniscan,代码行数:20,代码来源:Scan.php


示例18: phpversion

<?php

echo "\nPHP_SAPI    : ", PHP_SAPI, "\nPHP_VERSION : ", phpversion(), "\nZEND_VERSION: ", zend_version(), "\nPHP_OS      : ", PHP_OS, " - ", php_uname(), "\nINI actual  : ", realpath(get_cfg_var("cfg_file_path")), "\nMore .INIs  : ", function_exists('php_ini_scanned_files') ? str_replace("\n", "", php_ini_scanned_files()) : "** not determined **";
开发者ID:hltj,项目名称:tfs,代码行数:3,代码来源:run-test-info.php


示例19: foreach

// <tr><td class="e">System </td><td class="v">Windows NT BLINKYZERO 6.0 build 6000 </td></tr>
// since preg_* are potentially missing, we'll have to do this without regexps.
foreach (explode("\n", $s) as $line) {
    $line = str_replace('<tr><td class="e">', '', $line);
    $line = str_replace('</td></tr>', '', $line);
    $line = str_replace(' </td><td class="v">', ' => ', $line);
    $sep_pos = strpos($line, " => ");
    if ($sep_pos !== FALSE) {
        // by here, it should be a straight "name => value"
        $name = substr($line, 0, $sep_pos);
        $value = substr($line, $sep_pos + 4);
        $php_general[$name] = $value;
    }
}
$ini_file = $php_general['Loaded Configuration File'];
$extra_ini = php_ini_scanned_files();
if ($extra_ini != '') {
    $extra_ini = "The following additional ini files were read: {$extra_ini}";
} else {
    $extra_ini = "There were no additional ini files, according to PHP.";
}
$gdversion = "";
$gdbuiltin = FALSE;
$gdstring = "";
if (function_exists('gd_info')) {
    $gdinfo = gd_info();
    $gdversion = $gdinfo['GD Version'];
    if (strpos($gdversion, "bundled") !== FALSE) {
        $gdbuiltin = TRUE;
        $gdstring = "This PHP uses the 'bundled' GD library, which doesn't have alpha-blending bugs. That's good!\n";
    } else {
开发者ID:precurse,项目名称:netharbour,代码行数:31,代码来源:check.php


示例20: switch

<?php

switch ($_GET['test']) {
    case 'sha1':
        echo sha1('webdevops');
        break;
    case 'version':
        echo 'PHP ' . phpversion();
        break;
    case 'php_sapi_name':
        echo php_sapi_name();
        break;
    case 'get_loaded_extensions':
        $moduleList = array_merge(get_loaded_extensions(), get_loaded_extensions(true));
        echo implode("\n", $moduleList);
        break;
    case 'php_ini_scanned_files':
        echo php_ini_scanned_files();
        break;
    default:
        header('HTTP/1.1 500 Internal Server Error');
        echo 'ERROR: Unknown test';
        break;
}
开发者ID:yangsensen,项目名称:Dockerfile,代码行数:24,代码来源:php-test.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP php_sapi_name函数代码示例发布时间:2022-05-15
下一篇:
PHP php_ini_loaded_file函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap