Development

PHPコード:
<?php
class MS{
static $mem;
static $maxtime;

function __construct($mem){
self:: ...

Development

PHPコード:
<?php
/*============================説明========================================
@filename: sess ...

Development

PHPコード:
<?php
function DateAdd($date, $int, $unit = “d”) {//時間の加算
$dateArr = explode(̶ ...

Development

サンプルコード下記:

import sys;
import os;

class LineCount:
def trim(self,docstring):
if not docstring ...

Development

phpコード:
<?php
function check_date($date) {//日付の合法性をチェック
$dateArr = explode(“-“, $date); ...

Development

PHPコード:
<?
function osinfo() {
$os=””;
$Agent = $GLOBALS;
if (eregi(‘winR ...

Development

PHPコード:
<?
function browse_infor()
{
$browser=””;$browserver=””;
$Brow ...

Development

phpコード:

<?
$mime_types = array(
‘gif’ => ‘image/gif’,
‘jpg̵ ...

Development

phpコード:
<?
header(“Content-type:application/vnd.ms-excel”);
header(“Content-Disposit ...

Development

PHPコード:
//方法1:
<?
//$db->rowsはデータベースのdatetimeカラム値.
$today=time();
$theDay=date(“Y-m-d ...

Development

phpコード:
<?
@extract($_SERVER, EXTR_SKIP);
@extract($_SESSION, EXTR_SKIP);
@extract($_POST, EXTR_SK ...

Development

phpコード:
//現在のURLを取得する
<?
function get_php_url(){
if(!empty($_server)){
$scriptName = $_SERVER; ...

Development

phpコード:
//全角の数字を半角の数字に変わる
<?
function GetAlabNum($fnum){
$nums = array(“0”,”1 ...

Development

phpコード:
//相対パスから絶対パスへ変換
<?
function relative_to_absolute($content, $feed_url) {
preg_match(‘ ...

Development

サンプルコード:
#include <windows.h>
#include <stdio.h>
int make_dir( char * p_path )
{
int ...

Linux

1. rpm -ivh epel-release-6-7.noarch.rpm
# ls
CentOS-Base.repo CentOS-Base.repo.bak CentOS-Debuginfo.repo Cent ...

Linux

cat CentOS-Base.repo
# CentOS-Base.repo
#

JavaScript

書式
関数名.bind(引数)
bind() メソッドは、呼び出された際に this キーワードに指定された値が設定される
新しい関数を生成します。
使用例

<script> func ...