<?php $image_file = $_GET['src']; $corner_radius = isset($_GET['radius']) ? $_GET['radi…
php不破坏单词截取子字符串 /* snippet(phrase,[max length],[phrase tail]) snippetgreedy(phrase,[max len…
这个是一个php对session的再次包装的类,实现的常用的session操作,包含读取,写入,销毁等等 class Session { function Session() { …
// Simple browser detection $is_lynx = $is_gecko = $is_winIE = $is_macIE = $is_opera = $is…
php读取数据库生成一条一条的sql语句,可以用作mysql的备份 if (!function_exists('mysql_dump')) { function mysql_dum…
<?php function pageSplit($startPos, $rowsPerPage = '', $totalRows = '' ) { $numPages = …
function qsort(&$arr) { _quick_sort($arr, 0, count($arr) - 1); } /** * 采用递归算法的快速排序。 * …
php计算两个坐标(经度,纬度)之间的距离,返回结果为米或者千米 function distance($lat1, $lng1, $lat2, $lng2, $miles = tr…
PHP根据图片色界在不同位置加水印 function add_wm($nmw_water, $src_file, $output_file, $x, $y) { if(file_e…
这段php类可以挨个添加文件到数组,最后将添加的文件打包成zip /* $Id: zip.lib.php,v 1.1 2004/02/14 15:21:18 anoncvs_tus…
php来实现telnet的连接、传递命令、获取返回值等功能! <?php error_reporting(-1); class Telnet { var $sock = NU…
/** * Create a thumbnail image from $inputFileName no taller or wider than * $maxSize. Ret…