PHP

phpコード:
//this is a sample xml string
$xml_string=”﹤?xml version=’1.0′?﹥
﹤moleculedb﹥ ...

PHP

phpコード:
$email = $_POST;
if(preg_match(“~()@().
({2,4})~”,$email)) {
echo ‘This is ...

PHP

phpコード:

function checkDateFormat($date)
{
//日付の書式を一致する
if (preg_match (“/^({4})-({2})-({2})$/ ...

PHP

phpコード:

function getRealIPAddr()
{
if (!empty($_SERVER))//check ip from share internet
{
$ip=$_ ...

PHP

phpコード:
function base64url_encode($plainText) {
$base64 = base64_encode($plainText);
$base64url = strtr($ ...

CSS

書式
セレクタ{
プロパティ:値
}
使用例

<style> .cftB { color: blue; }</style><div class="cftA"> ...

Java

1.Javabeanは「WEB-INF/classes」の中に保存
毎回classesファイルまたはweb.xmlを修正したらサーバの再起動が必要
自動導入モード:Server.xmlに次の内容を追加
< ...

PHP

システム要件
Apache(httpd-2.2.19-win64) 、PHP(php-5.3.6-Win32-VC9-x64) 、MySQL(MySQL_5.5.13_winx64)

 1.Apacheのインストー ...

PHP

説明:
int strtotime ( string $time )
英文形式の日付をUnixタイムスタンプに変換する
例:
$date=floor((strtotime($enddate)-strt ...

PHP

1.レコードを読み出す
while($row=mysql_fetch_array($result))
{$record,
‘body’=>$row,);
}

$ ...

PHP

説明:
string json_encode ( mixed $value ] )
値をjson形式にして返す

PHPコード:
1.データベースの中からクエリされたたデータを配列に保存
$q ...

PHP

1.implode関数
説明:
string implode ( string $glue , array $pieces )
string implode ( array $pieces )
配列要素 ...

Java

1.LitJson、DLLファイルをダウンロード

2.クラスを作成
public class JsonData
{
public string result { get; set; }
pu ...

PHP

エラーメッセージ:
error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 35 bytes) in D:\www\wordpress\ ...

DataBase

SQL構文:
SELECT * into users_bak_20140726  FROM startnews24_users

注意:
自動的にusers_bak_20140726 テーブルを作成する、事前 ...

PHP

phpコード:

説明:str_replace-検索文字列に一致した全ての文字列を置換する

$begintime=str_replace(“-“, “”,̶ ...

Linux

1.ディレクトリ操作
rm -rf mydir/*mydirディレクトリを削除*/
cd mydir/*mydirに入る*/
cd –/*上級のディレクトリに入る*/
cd ../*親ディレ ...

PHP

1.エラーメッセージ:
Fatal error: Can’t use function return value in write context

2.NGコード
<?php
ec ...