上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
该文被密码保护。 阅读全文
posted @ 2013-05-11 00:36 arvim 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2013-05-09 00:57 arvim 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 下载ZendLoader.dll后,放到php的目录下,再php.ini文件末尾添加;;------------------加载zend Guard Loader --------------------------;[Zend.loader]zend_loader.enable=1zend_loader.disable_licensing=1zend_loader.obfuscation_level_support=3zend_loader.license_path=zend_extension=D:/wamp/php-5.3.23-nts-Win32-VC9-x86/ext/ZendLoa 阅读全文
posted @ 2013-05-01 11:13 arvim 阅读(247) 评论(0) 推荐(0) 编辑
摘要: /* String name = "adsbsadgsadgtewterfsdf"; eg a-->6,b-->1 d-->3 ... 将字符串以a(字母)=>2(个数)存入Map集合框架中 思路:1.将字符串转换成字符数组. 2.定义一个Map集合,然后对字符数组进行遍历,如果Map集合中没有该元素就将该元素存入Map集合中,并定义一个计数器,将次数存入Map中,来达到目的*/import java.util.*;class CharMapDemo{ public static void main(String[] args) { String s 阅读全文
posted @ 2013-03-20 10:25 arvim 阅读(302) 评论(0) 推荐(0) 编辑
摘要: class ArrayTest{ public static void main(String[] args) { int[] arr;//对数组初始化 arr = new int[100]; for (int x = 0; x < 100 ;x++ ) {//对数组的每个元素进行赋值 arr[x] = x; } for (int x = 0; x < arr.length-1 ; x++ ) {//打印每个值 System.out.println(arr[x]); } }} 阅读全文
posted @ 2013-03-20 10:19 arvim 阅读(1404) 评论(0) 推荐(0) 编辑
摘要: <?php/*燕十八 公益PHP培训 课堂地址:YY频道88354001 学习社区:www.zixue.it 将对象放到SESSION中形成单列模式*/ //打开session session_start(); final class CartTool{ private static $cart = null; public static $items = array(); //保护构造函数,防止new final protected function __construct(){ $this->test = mt_ran... 阅读全文
posted @ 2012-12-22 20:27 arvim 阅读(229) 评论(0) 推荐(0) 编辑
摘要: <!--燕十八 公益PHP培训 课堂地址:YY频道88354001 学习社区:www.zixue.it --><html><head><title>ajax</title><meta http-equiv="content-type"content="text/html;charset=utf-8 "/><script language="javascript"> function $(id){ return document.getElementBy 阅读全文
posted @ 2012-12-22 20:20 arvim 阅读(178) 评论(0) 推荐(0) 编辑
摘要: <?php/*燕十八 公益PHP培训 课堂地址:YY频道88354001 学习社区:www.zixue.it 原型图测试文件*/ header('content-type:text/html;charset=utf-8'); //POST接受数据 $smaller = $_POST['smaller']+0; $middle = $_POST['middle']+0; $college = $_POST['college']+0; $doctor = $_POST['doctor']+0; $all = $s 阅读全文
posted @ 2012-12-14 16:41 arvim 阅读(216) 评论(0) 推荐(0) 编辑
摘要: <?php/*燕十八 公益PHP培训 课堂地址:YY频道88354001 学习社区:www.zixue.it PHP的图片处理类(包括图片的水印,图片的缩略,验证码的实现)*/ class ImageTool{ //获取图片的信息宽高后缀等 public static function getInfo($dis){ $imginfo = getimagesize($dis); $info['width'] = $imginfo[0]; $info['height'] = $imginfo[1]; $info['ext'] = substr( 阅读全文
posted @ 2012-12-14 16:34 arvim 阅读(363) 评论(0) 推荐(0) 编辑
摘要: <?php/*燕十八 公益PHP培训 课堂地址:YY频道88354001 学习社区:www.zixue.it //创建画布 $im=imagecreatetruecolor(300,100); //定义画布的颜色 $white=imagecolorallocate($im,255,255,255); //生成图片 imagefill($im,0,0,$white); //画几个圈图 $gray=imagecolorallocate($im,240,240,240); $red=imagecolorallocate($im,255,0,0); $gren=imagecolorallocat 阅读全文
posted @ 2012-12-08 12:53 arvim 阅读(192) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页