php 948

#PHP
curl post方式访问网页

$url = http://xxxx.com; $params = array('id'=>11,'aa'=>22,'cc'=>33); $data = http…

2015-01-20 501

#PHP
phpexcel 读写xls文件例子

<?php include_once('PHPExcel.php'); //read excel file; $PHPExcel = new PHPExcel(); $PHP…

2015-01-20 746

#PHP
工厂设计模式PHP实现代码

<?php //人类接口 interface IHuman { function GetName(); } //男人类,实现人类接口 class ManClass imple…

2015-01-20 143

#PHP
php不变形截图

<?php function my_image_resize($src_file, $dst_file , $new_width , $new_height) { $src_…

2015-01-20 324

#PHP
DES加密解密的PHP类

<?php class authCode { public $ttl;//到期时间 时间格式:20120101(年月日) public $key_1;//密钥1 public…

2015-01-20 655

#PHP
二分法查找算法 顺序查找算法的PHP代码

<?php /** * 查找 * **/ // 顺序查找 function normal_search($arrData,$val) { $len = count($arrD…

2015-01-20 785

#PHP
单例模式PHP实现代码

<?php class SqlHelper { private static $_instance; public $_dbname; private function __…

2015-01-20 154

#PHP
php版的24点游戏源码

<?php class TwentyFourCal { public $needle = 24; public $precision = '1e-6'; function T…

2015-01-20 622

#PHP
php实现通过http头禁止浏览器缓存

header('Expires: 0'); header('Last-Modified: '. gmdate('D, d M Y H:i:s') . ' GMT'); header…

2015-01-19 565

#PHP
依据图片色界在不同位置加水印的PHP类

function add_wm($nmw_water, $src_file, $output_file, $x, $y) { if(file_exists($output_file…

2015-01-18 418

#PHP
PHP获取内存使用信息

echo "Initial: ".memory_get_usage()." bytes \n"; /* prints Initial: 36…

2015-01-18 588

#PHP
PHP解压缩 Zip 文件

/********************** *@file - path to zip file *@destination - destination directory fo…

2015-01-18 495
1 67 68 69 70 71 79