function add_wm($nmw_water, $src_file, $output_file, $x, $y) { if(file_exists($output_file…
echo "Initial: ".memory_get_usage()." bytes \n"; /* prints Initial: 36…
/********************** *@file - path to zip file *@destination - destination directory fo…
<?php /** * 生成缩略图函数(支持图片格式:gif、jpeg、png和bmp) * @author ruxing.li * @param string $src 源…
每个单词的首字母转换为大写:ucwords() 1 <?php 2 $foo = 'hello world!'; 3 $foo = ucword…
下载地址(github.com/masterexploder/PHPThumb)。 注意这个类库有一个重名的叫phpThumb,只是大小写的差别,所以查找文档的时候千万注意。 在网…
既然现在你看到了这篇文章,说明你肯定知道PHP和MySQL是怎么一回事,我就不啰嗦了。但 为什么你还要继续阅读此文呢?可能是以前你习惯复制粘贴一些代码,并没有真正弄懂代码的含义;也…
mysql.php 获取数据库中的记录 <?php /** *PHP+MYSQL数据库基本功能 *http://blog.csdn.net/yown */ #########…
这是一个函数定位接收一个字符串作为参数(连同其他配置可选参数),并且定位该字符串中的所有关键字(出现最多的词),返回一个数组或一个字符串由逗号分隔的关键字。 /** * Finds…
对指定的关键词进行替换处理,在html页面上高亮显示 function highlight($sString, $aWords) { if (!is_array ($aWords)…
可以按照指定的长度生成随机密码 function generatePassword($length=9, $strength=0) { $vowels = 'aeuy'; $con…
function urlfopen($url, $limit = 0, $post = '', $cookie = '', $bysocket = FALSE , $ip = ''…