當前位置: 首頁>>代碼示例>>PHP>>正文


PHP phpThumb::file_exists_ignoreopenbasedir方法代碼示例

本文整理匯總了PHP中phpThumb::file_exists_ignoreopenbasedir方法的典型用法代碼示例。如果您正苦於以下問題:PHP phpThumb::file_exists_ignoreopenbasedir方法的具體用法?PHP phpThumb::file_exists_ignoreopenbasedir怎麽用?PHP phpThumb::file_exists_ignoreopenbasedir使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在phpThumb的用法示例。


在下文中一共展示了phpThumb::file_exists_ignoreopenbasedir方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: elseif

    } elseif ($IMversionAge < 86400 * 365 * 3) {
        echo 'green';
    } elseif ($IMversionAge < 86400 * 365 * 4) {
        echo 'darkgreen';
    } else {
        echo 'olive';
    }
} elseif (!empty($ServerInfo['gd_string'])) {
    echo 'orange';
} else {
    echo 'red';
}
echo ';">';
echo '<div style="color: navy; font-family: monospace;">' . htmlentities($phpThumb->config_imagemagick_path);
echo ' <span style="cursor: help;" title="file_exists"                  >[' . intval(@file_exists($phpThumb->config_imagemagick_path)) . ']</span> ';
echo ' <span style="cursor: help;" title="file_exists_ignoreopenbasedir">[' . intval($phpThumb->file_exists_ignoreopenbasedir($phpThumb->config_imagemagick_path)) . ']</span> ';
echo ' <span style="cursor: help;" title="is_file"                      >[' . intval(@is_file($phpThumb->config_imagemagick_path)) . ']</span> ';
echo ' <span style="cursor: help;" title="is_readable"                  >[' . intval(@is_readable($phpThumb->config_imagemagick_path)) . ']</span> ';
echo ' <span style="cursor: help;" title="is_executable"                >[' . intval(@is_executable($phpThumb->config_imagemagick_path)) . ']</span> ';
echo '</div>';
echo '<div style="color: blue; font-family: monospace;">' . htmlentities($phpThumb->ImageMagickCommandlineBase()) . '</div>';
echo $ServerInfo['im_version'] ? $ServerInfo['im_version'] : 'n/a';
echo $IMreleaseDate ? '<br><br>This version of ImageMagick is ' . NiceTimeFormatting($IMversionAge) . ' old<br>(see <a href="http://www.imagemagick.org/">www.imagemagick.org</a> for new versions)' : '';
echo '</th><td>ImageMagick is faster than GD, can process larger images without PHP memory_limit issues, can resize animated GIFs. phpThumb can perform most operations with ImageMagick only, even if GD is not available.</td></tr>';
echo '<tr><th>ImageMagick features:</th>';
if ($ServerInfo['im_version']) {
    $GDfeatures['red'] = array('help', 'thumbnail', 'resize', 'crop', 'repage', 'coalesce', 'gravity', 'background', 'interlace', 'flatten', 'border', 'bordercolor', 'dither', 'quality');
    $GDfeatures['orange'] = array('version', 'blur', 'colorize', 'colors', 'colorspace', 'contrast', 'contrast-stretch', 'edge', 'emboss', 'fill', 'flip', 'flop', 'gamma', array('gaussian', 'gaussian-blur'), 'level', 'modulate', 'monochrome', 'negate', 'normalize', 'rotate', 'sepia-tone', 'threshold', 'unsharp');
    echo '<th colspan="2">|';
    foreach ($GDfeatures as $missingcolor => $features) {
        foreach ($features as $dummy => $feature) {
開發者ID:madberry,項目名稱:WhiteLabelTransfer,代碼行數:31,代碼來源:phpThumb.demo.check.php


注:本文中的phpThumb::file_exists_ignoreopenbasedir方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。