99388514

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2016年5月29日

摘要: <?php //判断GD库是否存在 if (!function_exists('imagepng')) { die('GD库不存在'); } //图片路径 $imagePath = './img/a.jpg'; //获取图片信息 $imageInfo = getimagesize($imagePath); //获取图片扩展名 $imageExtension = image_type_t... 阅读全文
posted @ 2016-05-29 12:04 PHP狗 阅读(422) 评论(0) 推荐(0) 编辑

摘要: <?php //判断GD库是否存在 if (function_exists('imagepng')) { dir('GD库不存在'); } //图片路径 $imagePath = './img/a.jpg'; //图片信息 $imageInfo = getimagesize($imagePath); //图片扩展名 $imageExtension = image_type_to_ext... 阅读全文
posted @ 2016-05-29 11:37 PHP狗 阅读(1063) 评论(0) 推荐(0) 编辑

摘要: <?php if (function_exists('imagepng')) { dir('GD库不存在'); } //图片路径 $imagePath = './img/a.jpg'; //获取文件类型 $imageInfo = getimagesize($imagePath); $imageExtension = image_type_to_extension($imageInfo[... 阅读全文
posted @ 2016-05-29 11:03 PHP狗 阅读(2476) 评论(0) 推荐(0) 编辑