码迷,mamicode.com
首页 >  
搜索关键字:php static self    ( 139138个结果
C#截取字符串
public class SubStrHelper { /// /// 截取字符串长度,中文二字节 /// /// /// 字节长度 /// public static strin...
分类:其他好文   时间:2014-04-30 23:51:33    阅读次数:441
【转】学习总结--Cookie & Session总结
转载地址:http://www.phperzone.cn/portal.php?aid=718&mod=view一、状态管理 1)什么是状态管理?将浏览器与web服务器之间多次交互过程当做一个整体来处理,并且将多次交互所涉及的数据进行管理。 2)状态管理技术cookie:a,什么是cookie? 是...
分类:其他好文   时间:2014-04-30 23:27:57    阅读次数:399
【转】Cookie和Session的区别详解
转载地址:http://www.phperzone.cn/portal.php?aid=541&mod=view一、cookie机制和session机制的区别 具体来说cookie机制采用的是在客户端保持状态的方案,而session机制采用的是在服务器端保持状态的方案。 同时我们也看到,由于才服.....
分类:其他好文   时间:2014-04-30 23:17:37    阅读次数:517
PHP5.2至5.6的新增功能详解
截至目前(2014.2), PHP 的最新稳定版本是 PHP5.5, 但有差不多一半的用户仍在使用已经不在维护 [注] 的 PHP5.2, 其余的一半用户在使用 PHP5.3 [注].因为 PHP 那“集百家之长”的蛋疼语法,加上社区氛围不好,很多人对新版本,新特征并无兴趣。本文将会介绍自 PHP....
分类:Web程序   时间:2014-04-30 22:53:03    阅读次数:646
PHP生成二维码的2种方式
二维码的用处俺也就不说了,看一下用PHP生成的二维码吧。 利用谷歌提供的API 生成二维码,现在很多国外网站都提供了这类API 看下代码吧《=======================》 <?php $urlToEncode="http://gz.altmi.com"; generateQRfromGoogle($urlToEncode); function generateQRfro...
分类:Web程序   时间:2014-04-27 22:33:19    阅读次数:339
FOJ 2170 花生的序列 dp
题目链接:http://acm.fzu.edu.cn/problem.php?pid=2170 贴个baka爷的代码留念。。 数据出的有问题,输入的字符串长度不超过1000 #include #include #include #include #include #include #include #include #include #include #define inf 0x3f3f3f...
分类:其他好文   时间:2014-04-27 22:16:18    阅读次数:359
C#-访问轰炸机,新建进程,结束进程...(ConsoleApp)---ShinePans
program.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace Tst { class Program { static void Main(string[] arg...
分类:移动开发   时间:2014-04-27 21:35:59    阅读次数:467
FOJ 2171 防守阵地 II 区间求和区间查询 线段树
题目链接:http://acm.fzu.edu.cn/problem.php?pid=2171 题意: 给定n长序列,常数m,q个询问 对于每个询问x 1、求[x, x+m-1] 区间和 2、[x,x+m-1]区间的所有元素-1 线段树裸题,不知为何全用longlong会re,只能改成部分longlong #include #include #define ll long long ...
分类:其他好文   时间:2014-04-27 21:35:00    阅读次数:328
lnmp之php-fpm+nginx+ulimit的综合设置之故障排除
相信其它的地方大家都懂,这里重点说下面红色粗体部分 参数设置必须与系统的 ulimit -Sn 参数一致,并且 php-fpm.conf,nginx,conf中的设置要一致,否则会出现诸多历史遗留问题以及不和谐的ERROR WRING问题以下是nginx.conf里的一些 配置信息,重点说红色部分#user nobody; user www www; worker_processes auto...
分类:Web程序   时间:2014-04-27 21:21:06    阅读次数:734
降低UIViewController切换的耦合
我们一般切换UIViewController的时候用的是如下代码 #import "UIViewControllerDemo.h" UIViewControllerDemo *vc = [UIViewControllerDemo alloc] initWithNibName:nil bundle:nil] autorelease]; [self.navigationController pushViewController:vc animated:YES];...
分类:其他好文   时间:2014-04-27 21:21:00    阅读次数:294
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!