<?php /** 1.number_format */ $number = 1234.56789; $nombre_format_francais = number_for…
<?php // 指定文件路径和缩放比例 $filename = 'test.jpg'; $percent = 0.5; // 指定头文件Content typezhi值 h…
php为图片加水印的代码 <?php $source=imagecreatefromjpeg('E:/image/guide_pic.jpg'); $thumb=imagec…
function send_mail ($title,$content,$from,$to,$charset='gbk',$attachment ='') { include '/…
<?php /* * Captcha Class base on PHP GD Lib * @author Design * @version 1.0 * @copyrigh…
php获取图片的exif信息,php自带一个exif_read_data函数可以用来读取图片的exif信息 <?php echo "test1.jpg:<br…
生成一定数量的不重复随机数 <?php /* * array unique_rand( int $min, int $max, int $num ) * 生成一定数量的不重复…
在PHP网站开发中,验证码可以有效地保护我们的表单不被恶意提交,但是如果不使用算式验证码或者汉字验证码,仅仅使用简单的字母或者数字验证码,这样的验证码方案真的安全吗? 大家知道简单…
关于PHP生成证书密钥的资料真是好少啊,查了半天,最终还是在官方文档找到了相关资料,又根据自己的理解,整理成了以下代码,分成两部分:生成证书密钥、加密解密数据。直接复制下来做成两个…
// f(ucking) u(ncrackable) e(ncryption) function by BlackHatDBL (www.netforme.net) functio…
通过使用此代码段,您可以很容易地提取任何网页上的所有链接。 $html = file_get_contents('http://www.example.com'); $dom = …
function download_file($file){ if(is_file($file)){ $length = filesize($file); $type = mime…