PHP

phpコード

fileDownloadFunc($_GET );

function fileDownloadFunc($file)
{
$file = “.//images// ...

PHP

1.cookieの設定方法1
setcookie(“user_id”,$user_info,86500);
setcookie(“username”,$user_info ...

Java

//keySet()  
Set<String> set = map.keySet();
for (String s:set) {
System.out.println(s+”,R ...

JavaScript

JSコード
var url=location.search;
var cft;
var Request = new Object();
if(url.indexOf(“?”)!= ...

JavaScript

サンプルコード
Array.prototype.remove = function(b) {
var a = this.indexOf(b);
if (a >= 0) {
this.splice( ...

Java

環境
Eclipse 4.14.0
JavaSE 11

構文
1.public static final double MIN_VALUE
double型の正の最小非ゼロ値2-1074を保持 ...

Nginx

1.ファイル.htaccessの作成
# nginx rewrite rule
rewrite ^(.*?)/article/.*?-(d+)-(d+).html$  $1/display.html?id=$2& ...

Apache

1.TIME_WAIT数をコマンドで確認
$ netstat -anp|grep TIME_WAIT

2.カーネルパラメータの設定変更
#vim/etc/sysctl.conf
net.ipv4.t ...

Linux

サンプルコード
#!/bin/bash

b=”
i=0
while
do
printf “progress:%d%%\r” $b $i
s ...

Apache

設定内容

#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine ...

Java

Javaコード

public void readprop() throws IOException
{
Resource resource = ApplicationContextFactory.getAp ...

Java

1.Set<String>のコード
Set<String> set = new HashSet<String>();
Iterator<String> it = set. ...

Python

サンプルコード
#!d:\python27\python.exe
# -*- coding: utf-8 -*-

import os
import re

from os import p ...

Python

方法1
f = open(“zhang.txt”)
line = f.readline()
while line:
print line,
# print(line, e ...

Java

1.必要なjar
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId&g ...

Java

javaコード
Class c = Class.forName(“java.lang.String”);
Object obj = c.newInstance();

class AB ...

Java

Javaコード
DocumentBuilderFactory fact = DocumentBuilderFactory.newInstance();
DocumentBuilder parser = fact.new ...

Java

Javaコード
//jarまたはzipを読む
ZipFile zf = new ZipFile(“startnews.jar”);
Enumeration all = zf.entrie ...