WindowsServer2008R2上缺少作曲家安装openssl

时间:2017-09-06 12:44:50

标签: php composer-php windows-server-2008-r2

我正在尝试在WindowsServer2008R2上安装 composer ,但是说缺少openssl扩展名。

我修改了 php.ini 文件,所以:

function resizeImage($image,$width,$height,$scale) {

list($imagewidth, $imageheight, $imageType) = getimagesize($image);
$imageType = image_type_to_mime_type($imageType);
$newImageWidth = ceil($width * $scale);
$newImageHeight = ceil($height * $scale);
$newImage = imagecreatetruecolor($newImageWidth,$newImageHeight);
switch($imageType) {
    case "image/gif":
        $source=imagecreatefromgif($image); 
        break;
    case "image/pjpeg":
    case "image/jpeg":
    case "image/jpg":
        $source=imagecreatefromjpeg($image); 
        break;
    case "image/png":
    case "image/x-png":
        $source=imagecreatefrompng($image); 
        break;
   **for SVG**
     //case "image/svg-xml":
     //$source=imagecreatefromsvg($image); 
     //   break;**
  }
imagecopyresampled($newImage,$source,0,0,0,0,$newImageWidth,$newImageHeight,$width,$height);

switch($imageType) {
    case "image/gif":
          imagegif($newImage,$image); 
        break;
      case "image/pjpeg":
    case "image/jpeg":
    case "image/jpg":
          imagejpeg($newImage,$image,90); 
        break;
    case "image/png":
    case "image/x-png":
        imagepng($newImage,$image);  
        break;
   **for SVG**
     //case "image/svg-xml":
     //imagepng($newImage,$image); 
     //   break;**
}

chmod($image, 0777);
return $image;

我尝试在发布之前进行搜索,但没有找到任何关于Win Server的信息

0 个答案:

没有答案