当前位置:首页 > 搜索和 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 函数的可读性和可维护性?(2025-02-10)
- ·PHP 函数中的可变参数与其他编程语言中的类似功能有何区别?(2025-02-10)
- ·PHP 函数中的可变参数与函数重载的关系(2025-02-10)
- ·PHP 中参数绑定的安全隐患及防范措施是什么?(2025-02-10)
- ·PHP函数如何处理不定长参数?(2025-02-10)
- ·php如何批量替换文件内容(2025-02-10)
- ·PHP函数的参数数组如何处理?(2025-02-10)
- ·PHP 函数中如何使用返回值进行分页处理?(2025-02-10)
- ·何时避免使用 PHP 函数通过引用传递参数?(2025-02-10)
- ·引用传递对 PHP 函数效率的影响如何?(2025-01-22)