本文整理匯總了PHP中check::make_dir方法的典型用法代碼示例。如果您正苦於以下問題:PHP check::make_dir方法的具體用法?PHP check::make_dir怎麽用?PHP check::make_dir使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類check
的用法示例。
在下文中一共展示了check::make_dir方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: HAW_text
$myText = new HAW_text($arrGWeb['name'] . '歡迎您!');
$objHaw->add_text($myText);
include_once 'include/foot.php';
exit;
}
$intID = intval($_GET['id']);
$arrInfo = $objWebInit->getInfo($intID, '*', 1, true);
include_once 'include/title.php';
include_once 'include/head.php';
$myText = new HAW_text("標題:" . $arrInfo['title']);
$objHaw->add_text($myText);
if (!empty($arrInfo['photo']) && $intCPage == 1) {
$strWapPhoto = $arrGPic['FileSavePath'] . 'wap/' . $arrInfo['photo'];
if (!is_file($strWapPhoto)) {
//生成壓縮圖
check::make_dir($strWapPhoto);
copy($arrGPic['FileSavePath'] . '/b/' . $arrInfo['photo'], $strWapPhoto);
$objGDImage = new GDImage();
if ($objGDImage->makePRThumb($strWapPhoto, 0, $arrMHaw['image_width'], $arrMHaw['image_height'])) {
$myImage = new HAW_image("photo.wbmp", $arrGPic['FileCallPath'] . 'wap/' . $arrInfo['photo'], $arrInfo['title']);
$myImage->set_br(1);
$myImage->set_html_width($arrMHaw['image_width']);
$objHaw->add_image($myImage);
}
} else {
$myImage = new HAW_image("photo.wbmp", $arrGPic['FileCallPath'] . 'wap/' . $arrInfo['photo'], $arrInfo['title']);
$myImage->set_br(1);
$myImage->set_html_width($arrMHaw['image_width']);
$objHaw->add_image($myImage);
}
}