当前位置:首页 > 搜索和 Php 相关的文章
-
php 生成验证码程序
添加日期:2014-08-20 09:52:52 发布:smiling
<?php$consts=& 39;bcdfghjkmnpqrstwxyz& 39;;$vowels=& 39;aei23456789& 39;;for($x=0;$x<6;$x++){$const[$x]=substr($consts,mt_rand(0,s ...
-
php 验证码图片程序
添加日期:2014-08-20 09:50:23 发布:smiling
<?php **文件名:class safeCode php*类名:safeCode*目的:生成web应用时所需的验证码图片*当前版本:1 0 2*作者:NoAngels*联系方式:flare_102 ...
-
php给图片加水印函数
添加日期:2014-08-20 09:49:15 发布:smiling
functionWatermark_IM($preview=0){global$watermarkstatus,$watermarktype,$watermarktrans,$watermarkquality,$watermarktext,$imageimpath;$watermarkstatus=$GLOBALS[& 39;forum& 39;][& 39;di ...
-
php创建缩略图程序
添加日期:2014-08-20 09:48:20 发布:smiling
functionThumb_IM($thumbwidth,$thumbheight,$preview=0){global$thumbstatus,$imageimpath,$thumbquality;if($thumbstatus){list($img_w,$ ...
-
php生成曲线图程序
添加日期:2014-08-20 09:45:55 发布:smiling
<?php *******************用法*************************$gg=newbuild_graph();$d1=array(0,62,25,20,20,100,99); 曲线一 $d1=array(& 39;15& 39;=>5,& 39;16& 39;=>8,& 39;17& 39;=>7,& 39;18& ...
-
php生成缩略图代码
添加日期:2014-08-20 09:44:49 发布:smiling
<?php Constantsdefine("IMAGE_BASE",& 39; & 39;);define("MAX_WIDTH",150);define("MAX_HEIGHT",150); Getimagelocationstr_replace(& 3 ...
-
php上传图片并生成缩位图代码
添加日期:2014-08-20 09:42:59 发布:smiling
php上传图片并生成缩位图代码,我们时常要上传图片,但也要保留自己的版权所以就会用到图片加水印哦,下面的程序就是上传图片成功后再给图片加上你自己做的水印效果,实例代码如下:<?phpclassImage{var ...
-
php 图片处理函数实例教程
添加日期:2014-08-19 16:43:33 发布:smiling
<?php 公用函数 把角度转换为弧度functiondeg2Arc($degrees){return($degrees*(pi() 180 0));} RGBfunctiongetRGB($color){$R=($color>>16)&0xff;$G=($color>>8)&0xff;$B=($color)&0xff;return( ...
-
php简单创建图片实例
添加日期:2014-08-19 16:41:23 发布:smiling
php创建图片教程,我们在编程时经常会看到用php写图片,验证码等,下面是一个简单的php创建图片实例代码:<?php$height=300;$width=300;$im=ImageCreateTrueColor($width,$height);$white=ImageColorAl ...
-
php 图片下载程序
添加日期:2014-08-19 16:40:12 发布:smiling
functiondisplayimg($image){$image=& 39; upload & 39; imgdecode($image); echo$image;exit;if(file_exists($image)){$info=getimagesize($image);header("Content-type:$info[mime]");switch( ...
-
php 验证码生成程序,可自动判断php gd库
添加日期:2014-08-19 16:38:46 发布:smiling
functionShowKey(){$key=strtolower(domake_password(4));$set=esetcookie("checkkey",$key); 是否支持gd库if(function_exists("imagejpeg")){header("Content-type:image jpeg");$img=imagecreat ...
-
php imagecreatefromgif创建gif图片
添加日期:2014-08-19 16:35:47 发布:smiling
php imagecreatefromgif创建gif图片imagecreatefromgif($filename)imagecreatefromgif()返回一个图像标识符代表从给定的文件名获得的图像$filename是gif图片名称,来看个实例:<?phpfunctionLoa ...
精彩文章
- ·PHP关键字Self、Static和parent的区别详解(2025-12-12)
- ·PHP使用PHPExcel读取excel数据并批量上传到数据库(2025-12-12)
- ·基于PHP实现一个简单的http服务器(2025-12-12)
- ·使用PHP和Xunsearch实现歌曲搜索功能(2025-12-12)
- ·详解PHP中互斥锁库hyperf-wise-locksmith的使用(2025-12-12)
- ·PHP使用OCR技术实现识别图片中的文字(2025-12-12)
- ·PHP使用互斥锁确保代码的线程安全的操作示例(2025-11-16)
- ·PHP中使用反射获取类的所有方法(2025-11-16)
- ·PHP实现页面跳转的三种方式(2025-11-16)
- ·PHP如何优化冗余代码(2025-11-16)