php
azezeze
这个作者很懒,什么都没留下…
展开
-
【php】常用方法
图片等比压缩ImgCompress.php<?php/** * 图片压缩类:通过缩放来压缩。 * 如果要保持源图比例,把参数$percent保持为1即可。 * 即使原比例压缩,也可大幅度缩小。数码相机4M图片。也可以缩为700KB左右。如果缩小比例,则体积会更小。 * */class ImgCompress{ private $src; private $image; private $imageinfo; private $percent = 0原创 2023-12-26 14:38:59 · 377 阅读 · 0 评论 -
composer 报错could not be fully loaded (curl error 55 while downloading https://repo.packagist.org/p2/
【代码】composer 报错could not be fully loaded (curl error 55 while downloading https://repo.packagist.org/p2/原创 2023-08-25 09:19:35 · 429 阅读 · 0 评论 -
【PHP】算法实现
php 算法原创 2022-08-11 09:40:23 · 65 阅读 · 0 评论 -
【PHP】魔术方法
php魔术方法原创 2022-07-11 14:31:41 · 185 阅读 · 0 评论 -
【PHP】腾讯cos生成对象访问url
cos生成对象访问的url原创 2022-07-04 17:32:56 · 549 阅读 · 0 评论 -
【PHP】php等比例生成图片缩略图
php生成图片缩略图原创 2022-07-04 17:10:29 · 137 阅读 · 0 评论 -
【RabbitMQ】windows系统 composer安装rabbitmq报错
【Rabbitmq】windows系统 composer安装rabbitmq报错原创 2022-06-24 14:54:28 · 626 阅读 · 0 评论 -
【面试题】PHP
1、用php实现字符串翻转不包含中文$str = 'abcdefg';function mystrrev($str){ $length = strlen($str); $newstr = ''; for($i = $length; $i >= 0; $i--){ $newstr.=$str[$i]; } return $newstr;}var_dump(mystrrev($str)); // gfedcba包含中文he原创 2022-05-27 16:16:53 · 52 阅读 · 0 评论