error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
#error_reporting(E_ALL & ~E_NOTICE );
ini_set( 'display_errors', "1" );
ini_set( 'display_startup_errors', "1" );
ini_set('session.use_cookies', '1');
session_cache_limiter('private, must-revalidate');
#session_cache_limiter('private_no_expire');
session_start();
// DEFINE一覧
include_once('../../sub_pgm/define.php');
//トラックバック用プログラム
$tb_html .= $entry_id;
#DBの初期処理
sub_db_start();
#テキストデータの場所
$file_txt = FILE_TXT;
#-----------------------------------------------------
$sql = "select entry_text from $file_txt where (`entry_blog_id` = '$blog_id') and (`entry_id` = '$entry_id') limit 1";
$result = mysql_query($sql);
$araycol = mysql_fetch_array( $result, MYSQL_ASSOC );
$html_data = $araycol[entry_text];
#コメントデータの場所
$file_cmt = FILE_CMT;
#-----------------------------------------------------
$sql = "select * from $file_cmt ";
$sql .= " where (comment_blog_id = '$blog_id') and (comment_entry_id = '$entry_id') and (comment_visible = '1') ";
$sql .= " order by comment_id ";
$result = mysql_query($sql);
while( $araycol = mysql_fetch_array( $result, MYSQL_ASSOC ) ){
$com_author[] = $araycol['comment_author'];
$com_email[] = $araycol['comment_email'];
$com_text[] = str_replace("\n", "
", $araycol['comment_text']);
$com_url[] = $araycol['comment_url'];
$com_date[] = $araycol['comment_created_on'];
}
#トラバデータの場所
$file_trb = FILE_TRB;
#-----------------------------------------------------
$sql = "select * from $file_trb ";
$sql .= " where (tbping_blog_id = '$blog_id') and (tbping_tb_id = '$entry_id') and (tbping_visible = '1') ";
$sql .= " order by tbping_id ";
$result = mysql_query($sql);
while( $araycol = mysql_fetch_array( $result, MYSQL_ASSOC ) ){
$tb_text[] = $araycol['tbping_excerpt'];
$tb_url[] = $araycol['tbping_source_url'];
$tb_blog_name[] = $araycol['tbping_blog_name'];
$tb_title[] = $araycol['tbping_title'];
$tb_date[] = $araycol['tbping_created_on'];
}
//-----------------------------------------------------
//SUB DBの初期処理
//-----------------------------------------------------
function sub_db_start(){
$db_name = DF_DB_NAME;
$db_id = DF_DB_ID;
$db_pass = DF_DB_PASS;
$host_name = DF_DB_HOST;
$con = mysql_connect ($host_name, $db_id, $db_pass) or sub_error_page(MSG_DB_OUT);
if ( $con == $FALSE ) {
sub_error_page(MSG_DB_OUT);
}
mysql_select_db($db_name);
mysql_query("SET NAMES utf8");
return $con;
}
?>
//-----------------------------------------------------
//SUB URLが404かどうかを判断する(1のとき、404)
//-----------------------------------------------------
function sub_sonota_url_chk($hp_ad) {
$ret_value = 0;
$head = get_http_header($hp_ad);
$response = $head['Status-Code'];
# if (
# substr($response, 0, 1) != '1' &&
# substr($response, 0, 1) != '2' &&
# substr($response, 0, 1) != '3'
# )
switch($response){
case 'HTML':
$ret_value = 0;
break;
default:
//リンク切れ
$ret_value = 1;
break;
}
# echo "$hp_ad
";
# echo "response,$response
";
return $ret_value;
}
//-----------------------------------------------------
//SUB URLがエラーかどうかを判断する(1のとき、エラー)
//-----------------------------------------------------
function sub_sonota_url_chk_test($hp_ad) {
$ret_value = 0;
$head = get_http_header($hp_ad);
$response = $head['Status-Code'];
# if (
# substr($response, 0, 1) != '1' &&
# substr($response, 0, 1) != '2' &&
# substr($response, 0, 1) != '3'
# )
switch($response){
# case '400':
# case '401':
# case '403':
case '404':
case '420':
case '421':
case '500':
case '503':
//リンク切れ
$ret_value = 1;
break;
default:
$ret_value = 0;
}
# echo "$hp_ad
";
# echo "response,$response
";
return $ret_value;
}
//-----------------------------------------------------
//SUB URLからヘッダーを取得
//-----------------------------------------------------
function get_http_header( $target ) {
// URIから各情報を取得
$info = parse_url( $target );
$scheme = $info['scheme'];
$host = $info['host'];
$port = $info['port'];
$path = $info['path'];
// ポートが空の時はデフォルトの80にします。
if( ! $port ) {
$port = 80;
}
// リクエストフィールドを制作。
$msg_req = "HEAD " . $path . " HTTP/1.0\r\n";
$msg_req .= "Host: $host\r\n";
$msg_req .=
"User-Agent: H2C/1.0\r\n";
$msg_req .= "\r\n";
// スキームがHTTPの時のみ実行
if ( $scheme == 'http' ) {
$status = array();
// 指定ホストに接続。
if ( $handle = @fsockopen( $host, $port, $errno, $errstr, 1 ) ) {
fputs ( $handle, $msg_req );
if ( socket_set_timeout( $handle, 3 ) ) {
$line = 0;
while( ! feof( $handle) ) {
// 1行めはステータスライン
if( $line == 0 ) {
$temp_stat =
explode( ' ', fgets( $handle, 4096 ) );
$status['HTTP-Version'] =
array_shift( $temp_stat );
$status['Status-Code'] = array_shift( $temp_stat );
$status['Reason-Phrase'] =
implode( ' ', $temp_stat );
// 2行目以降はコロンで分割してそれぞれ代入
} else {
$temp_stat =
explode( ':', fgets( $handle, 4096 ) );
$name = array_shift( $temp_stat );
// 通常:の後に1文字半角スペースがあるので除去
$status[ $name ] =
substr( implode( ':', $temp_stat ), 1);
}
$line++;
}
} else {
$status['HTTP-Version'] = '---';
$status['Status-Code'] = '902';
$status['Reason-Phrase'] = "No Response";
}
fclose ( $handle );
} else {
$status['HTTP-Version'] = '---';
$status['Status-Code'] = '901';
$status['Reason-Phrase'] = "Unable To Connect";
}
} else {
$status['HTTP-Version'] = '---';
$status['Status-Code'] = '903';
$status['Reason-Phrase'] = "Not HTTP Request";
}
return $status;
}
?>
趣味起業コンサルタント西田さん・ボスさんインタビュー
趣味起業コンサルタントして活躍されている
・読書好きはいつから?
こんな流れでインタビューを受けました。
弱小メルマガだった【エンビジ】が応援していただけたのは?
わずか3000部程度だったメールマガジン。
プレゼンの達人が語る「明快ビジネス宅配便」4番組分
プレゼンの達人、浜田幸一が語る実際のFMラジオで流された幻の番組を収録したものです。
キャンペーンページをご紹介いただく準備をする
(紹介方法は下記の2通りあります)
なお、今回はご紹介いただく方法を 1つではなく、2つ用意しております。
特に(1)は、これまでにない おもしろい方法ですのでチェックしてみてくださいね。
ご紹介方法
1)amazonキャンペーン支援サービスをご利用いただく
こちらのURLに今回の書籍を登録しております。
このサービスを利用すると、キャンペーンページ内に埋め込まれている
Amazonへのリンクが、紹介者の方のアフィリエイトIDに置き換わりますので
書籍購入分のアフィリエイト料をお受け取りいただけます。
「紹介者」としてこのシステムに登録いただいた上で、
4/24 の日付を選択して
専用の紹介URLを取得いただき、ご紹介いただくという簡単な作業となっております。
<<紹介者ログイン後の画面>>
2)キャンペーンページを直接ご紹介いただくURLを確認する
キャンペーンページ
http://www.bookcampaign.com/bookmethod/
のURLを直接ご紹介いただく形です。
そして、下記のフォームに、必要な情報を入力して、
【ご紹介特典を申し込む】ボタンをクリックしてください。
「無知とは罪である」
この言葉を思い出させる出来事はたくさんあります。
歓談している相手の言葉を知らないために、
本著をお読みのあなたには、なにか達成したい目標や夢があると思います。
最初のステップは「知る」。
その二番目のステップは「わかる」。
そして最後のステップは「動く」。
「読書術」という言葉を聞くと、本を読んで「インプットする」というところにクローズアップされがちです。
そんな人生ともいえる「目標達成につながる読書」を一緒に楽しんでいきましょう。
丸山 純孝(まるやますみたか)
1973年千葉県八千代市生まれ。京都市在住。東京大学工学部卒、東京大学大学院工学系研究科修了。
ビジネス書を書評するメールマガジンを
著者が個人的に執筆するビジネス書の書評のメールマガジン
公式サイト | http://www.sumitakamaruyama.com/ |
https://www.facebook.com/sumitakamaruyama | |
https://twitter.com/maruruchan |