![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
Mr.Moon.dsl
学无止境
展开
-
php操作文件夹
对文件内容操作 <?php //readfile('a.txt');//读取文本内容 //var_dump(file('a.txt'));//索引数组对每一行排序 //$str = file_get_contents('a.txt');把文件内容原样输出相当于python的''' //var_dump($str); file_put_contents('tst.txt'...原创 2020-03-17 23:36:33 · 144 阅读 · 0 评论 -
PhP图片加水印
php图片加水印 同级目录加test目录 <?php wather('1.jpg'); function wather($source, $water = '3.png' ,$position = 8, $alpha =100, $type='jpeg', $path ='test' , $isRandName =true) { //打开图片 $sourceRes = open...原创 2020-03-17 22:04:58 · 82 阅读 · 0 评论 -
PHP实现验证码
PHP生成验证码 <?php //1.宽高 字母 数字 字母数字混合线 干扰线 干扰点 背景色 字体的颜色 verfify(); function verfify( $width =100 ,$height = 40, $num = 5, $type = 1) { //1.准备画布 $image = imagecreatetruecolor($width, $height);...原创 2020-03-17 17:28:53 · 91 阅读 · 0 评论