PHP

例:$array=array(0=>’phpernote’,1=>”,2=>’com’,3=>”);

処理コード:
$ ...

PHP

解決対策:
$currentSessionID=session_id();
session_id($currentSessionID);

PHPコード
1.http
session_star ...

PHP

PHPコード:
操作クラス
<?
/**
* Resizes Animated GIF Files
*///IMPORTANT NOTE: The script needs a tempo ...

Oracle

システム要件:
OS:centos 6.0_x64
oracle 11g

対策手順:
wget
tar zxvf rlwrap-0.30.tar.gz
cd rlwrap-0.30 ...

PHP

PHPコード:
//変数を設定ファイルに書き込む
public static function writeConfig($key, $value) {
$path = app_path() . ‘/ ...

PHP

PHPコード:
function xmlData($data, &$xml, $k=”)
{
$p = 0;
$num = 0;
foreach ($data as $key ...

PHP

phpからpostリクエストを送信する方法、「curl」「 file_get_content」 「 fsocket」を利用してpostでデータを送信
PHPコード:

class Request{
  //c ...

PHP

ファイル名:clear_bom.php
phpコード:
<?php
if (!empty($_GET)){//ファイルディレクトリを設定
$basedir=$_GET;
}else{ ...

PHP

PHPコード:
<?php

class ConvertEncode {

/**
* 変換エンコーディング
* @var string
*/
private $_to ...

PHP

1.テーブルを作成
CREATE TABLE `upload` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`type` varchar(20) NOT N ...

Source

次のスクリプトを実行してCentOS/RHELに自動的にWildFlyサーバーが起動
shellコード:
/etc/init.d/wildfly.sh

#!/bin/bash

: ${JAVA_ ...

MySQL

目的:

データベースのログファイルが大きすぎる問題を解決する

shellコード:
#!/bin/bash
USER=backup_startnews24
PASS=startnews24 ...

Source

shellコード:
#!/bin/bash
#Program:
# tomcatのbinにsetenv.shを作成
#ディレクトリを入力
read -p “ディレクトリを入力してくだ ...

Source

shellコード:
#!/bin/sh

tomcat_path=”/data/www/”

############################################ ...

Source

shellコード:

@echo off
set srcFile=d:\temp.src
del %srcFile%
echo open >”%srcFile%”

PHP

1.Laravel基本的ルーティング:

//GETルーティング
Route::get(‘example/test3’, function(){

return ‘htt ...

PHP

1.XHProfをダウンロード
wget

2.XHProfをコンパイルしてインストール
tar zxf xhprof-0.9.2.tgz
cd xhprof-0.9.2/extension/

MySQL

構成ファイルを設定
# vi/etc/my.cnf
max_connections=3000
wait_timeout=10

MySQL再起動
#/etc/init.d/mysql