类似于dreamhost这类主机服务商,是显示fopen的使用 的。使用php的curl可以实现支持FTP、FTPS、HTTP HTPPS SCP SFTP TFTP TELNET DICT FILE和LDAP。curl 支持SSL证书、HTTP POST、HTTP PUT 、FTP 上传,kerb...
分类:
Web程序 时间:
2014-11-04 19:24:04
阅读次数:
275
汗,无知真可怕,Servlert规范中已经有自动跳转到保护页面(Http - Https)的方法了:web.xml Test Auth Protected Area /* DELETE GET POST PUT SSL required CONFIDENTIAL Basic 认证 + S...
分类:
Web程序 时间:
2014-11-04 19:10:48
阅读次数:
361
function Map() { var struct = function(key, value) { this.key = key; this.value = value; } var put = function(key, value) { for (var i = 0; i < this.arr.length; i++) { if (this.arr[i].key === key) ...
分类:
Web程序 时间:
2014-11-04 15:25:28
阅读次数:
175
importjava.util.Scanner;importjava.util.Arrays;publicclassArrayTest03{publicstaticvoidmain(String[]args){System.out.println("请输入数组的长度:");InPutin=newInPut();//调用类InPutintn=in.in_put();//调用类InPut的方法in_putint[]arr=in.ScanIn(n);//调用方法ScanIn..
分类:
编程语言 时间:
2014-11-04 00:22:09
阅读次数:
330
首先,从JDK源码来看,HashMap和HashTable都实现了Map接口:
可以看出,HashTable是从JDK1.0就有的,HashMap而是从JDK1.2才有的。
二者实现的接口一致。
因此,对外方法API也基本一致:
内部存储方式也基本一致,都是邻接表形式:
基本操作也基本一致,以put方法为例,都是先算Key的hashCode,然后以【has...
分类:
其他好文 时间:
2014-11-04 00:16:46
阅读次数:
223
function Map() //自定义map{ this.container = new Object();}Map.prototype.put = function(key, value){ this.container[key] = value;};Map.prototype.ge...
分类:
Web程序 时间:
2014-11-03 16:12:18
阅读次数:
280
//顺序表的合并
//输入元素函数 put
//输出元素函数 output
//合并 Merge
#include
#include
#include
using namespace std;
#define LIST_INIT_SIZE 80
#define LISTINCREMENT 10
typedef struct
{
int *elem;
int length; ...
分类:
其他好文 时间:
2014-11-02 09:23:09
阅读次数:
225
Map m = new HashMap(); Integer i = 5; String s = null; m.put("val1", i); m.put("val2", s); System.err.println(m.get("val1")); System.err.prin...
分类:
其他好文 时间:
2014-11-01 16:15:31
阅读次数:
145
<?xml?version="1.0"?>
<?xml-stylesheet?type="text/xsl"?href="configuration.xsl"?>
<!--?Put?site-specific?property?overrides?in?this?file.?-->
<configuration>
<property>
<name>plugi...
分类:
其他好文 时间:
2014-10-31 13:59:24
阅读次数:
135
url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。 type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分浏览器支持。 timeout: 要求为Number类型...
分类:
Web程序 时间:
2014-10-31 11:23:25
阅读次数:
222