PHP图片水印
[code=PHP]
/**
* PHP图片水印 (水印支持图片或文字)支持中文
* @param string $groundImage 背景图片路径
* @param intval $waterPos 水印位置:有10种状态,1-9以外为随机位置;
* 1为顶端居左,2为顶端居中,3为顶端居右;
* 4为中部居左,5为中部居中,6为中部居右;
* 7为底端居左,8为底端居中,9为底端居右;
* @param array $water_arr 参数数组,可包含如下值:
*----------------------------------------------------------------
* string $type 添加水印的类型 , 'img' => 添加水印图片, 'text' => 添加水印文字,
* string $path 添加水印图片时,水印图片的路径,
* string $content 添加水印文字的文字内容
* string $textColor 添加水印文字的文字颜色
* string $textFont 添加水印文字的文字小大
* string $textFile 添加水印文字的文字字库路径
*--------------------
相关文档:
* 作者: laruence(http://www.laruence.com)
* 本文地址: http://www.laruence.com/2008/04/16/118.html
* 转载请注明出处
传统的B/S结构的应用程序,都是采用”客户端拉”结束来实现客户端和服务器端的数据交换。
本文将通过结合Ticks(可以参看我 ......
模式修正符 — 解说正则表达式模式中使用的修正符
说明
下面列出了当前在 PCRE 中可能使用的修正符。括号中是这些修正符的内部 PCRE 名。修正符中的空格和换行被忽略,其它字符会导致错误。
i (PCRE_CASELESS) 如果设定此修正符,模式中的字符将同时匹配大小写字母。 m(PCRE_MULTILINE) 默认情况下,PCR ......
PHP中的MYSQL常用函数总结
1、mysql_connect()-建立数据库连接
格式:
resource mysql_connect([string hostname [:port] [:/path/to/socket] [, string username] [, string password]])
例:
$conn = @mysql_connect("localhost", "username", "password") or dir( ......
原帖地址:http://www.phpma.com/english/20071215/640.html
Description
array explode
( string separator, string string [, int limit])phpma.com
Returns an array of strings, each of which is a substring of string
formed by splitting it on boundaries formed by the string separator
. If limit
is ......