August 15, 2006
Posted by funa : 07:43 PM | Web | Comment (0) | Trackback (0)
August 11, 2006
///// フォーム送信でバックスラッシュが割り込む /////
magic_quotes_gpcがON設定となっていると、フォームから受け取った文字の中に\(バックスラッシュ)、"(ダブルクォーテーション)、'(シングルクォーテーション)があった際、その後ろに自動で「\」をつけエスケープ処理を行います。SQL injection 対策でもあるのですが、SJIS の文字コードの場合、パソコンの「ソ」のコードは「0x83 0x5c」なので、「パソコン」→「パソ\コン」となり、上手く表示ができなくなります。
PHP.ini - magic_quotes_gpc を OFF
htaccess - php_flag magic_quotes_gpc off
Code - if (get_magic_quotes_gpc()) { $str = stripslashes($str); }
///// サイズが大きいファイルをアップロードできない /////
/etc/httpd/conf.d/php.conf 内の以下の個所を変更する。
#
# Cause the PHP interpreter handle files with a .php extension.
#
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 524288
</Files>
///// メモリ不足エラー /////
/etc/php.ini 内の以下の個所を変更する。
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing...
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
Posted by funa : 05:13 PM | Web | Comment (0) | Trackback (0)
July 25, 2006
Posted by funa : 04:35 AM | Web | Comment (0) | Trackback (0)
July 18, 2006
Posted by funa : 03:45 PM | Column | Comment (0) | Trackback (0)
July 15, 2006
Posted by funa : 03:12 PM | Web | Comment (0) | Trackback (0)
July 2, 2006
Posted by funa : 07:34 PM | Column | Comment (0) | Trackback (0)
June 18, 2006
Posted by funa : 06:54 PM | Column | Comment (0) | Trackback (0)
June 11, 2006
1. 時間と注意が不足しているときをターゲットにする
何も気にしていないことに対して、期限を区切る。タイムセールなどは良い例。
2. 周囲で支持される信仰に基づいて、事実を偽る
他人の言葉を引用したり、一部のメディア報道を過剰に伝え、誰もがその事実を信じているように仕向ける。
3. 簡単な物事を説明するために、複雑な言葉を使う
難しい言葉や専門用語を多用して、「あなたは知らない」という認識を植えつける。
4. 権威的な立場を悪用する
権威的な立場や、有力者などの名を借りて、逆らうことが不利に働くと信じさせる。
5. 不当な要求をする
絶対に拒むであろう要求をしたうえで、それに準じた妥協案を示す。
(例:100万円を今すぐ支払ってください。ダメなら仕方がないので、月々10万円ずつということも考えても良いです)
6. 緩く関連付けられた結論を引き出す
一般的な認識であれば、たどり着くであろう結論を先に示し、思考を誘導する。
(例:一般的に考えれば、停車中の車にぶつかったあなたが悪いですよね。ということは、私の請求した金額を支払うべきなんです)
7. 希少性を用いて、錯覚を誘う
「数量限定」、「売り切れ間近」などに代表されるような希少性を演出し、交渉に応じなければ永遠に機会が失われるように思わせる。
(例:この機会を逃すと、同じ値段で買えることは、ないと思ってください)
8. 理想的な未来をちらつかせる
相手が理想とする未来を垣間見せて、それに近付くことができると信じさせる。
(例:この薬を飲めば、今よりも5キロ痩せるんですよ。5キロ痩せたら、とても素敵だと思いませんか?)
9. 突然話題を変える
議論を迂回させたり、遠回りをして、注意を散漫にさせる。
10. 罪悪感を増徴する
問いかけは、いつも相手が罪悪を感じるような内容のもの。
(例:仕事で失敗したとき、どう感じますか? 上司や同僚に悪いと思いませんか? 迷惑をかけてますよね)
11. 恐怖を与え、その解決策を提示する
身にあまる危険や恐怖心を煽り、その解決を提示することで、自分を頼らざるを得ない状態を作る。
(例:このまま放っておくと、お金を支払うことだけでは済まなくなりますよ(と、恐怖心を煽る)。私からも先方にお願いしておきますので、何かあったら、まずは私に相談してください(として、協力するような素振りで、相手を手懐ける)。)
12. 簡単に始められるきっかけを提供する
出来るだけ簡単なきっかけを与え、それを繰り返すことで、より大きな成果が得られるような期待感を煽る。
(例:最初は失敗しても、1円も損することはありません。3カ月続けて、一定の成果が得られれば、それに応じた報酬も得られるのです。簡単でしょ?)
Posted by funa : 07:46 PM | Web | Comment (0) | Trackback (0)
June 11, 2006
Parse error: syntax error, unexpected '@' in /home/blablahogehoge.php on line 27
サーバサイドでプログラムを実行するときに上のようなエラーがでたら、ソース内に文字コードの違うキャラクターが混在している可能性が高い。SHIFT_JISをいったんUTF-8に変換してみると、隠れ文字化けの@がスペースから現れる。コードに間違いがないように思うときは、こういう対処も必要である。
Posted by funa : 01:13 PM | Web | Comment (0) | Trackback (0)
June 3, 2006
![]() A book of Tohmas cook and a Arukikata will save your travel. Reconfirming your plan using these books keeps you calm even if you ask at clerks in stations or information. In any case, Maps in the books. You can find a hotel wherever you are it costs 30 to 50 Euro even at night because travel is the main business for almost countries in Europe. Approx 20 Euro for YH. Geneve Very clean, peaceful and equality. There was nobody meddlesome. It seems like machine-like but I feel comfortable so much. I realized comfort is close to machine-like. Indeed I went to the Red cross, UN and Rolex!! Frankfrut グーテンターク(こんにちは)、ダンケシェ(ありがとう)、チェス(さようなら)。I know European don't like Japanese but German is terrible. Some people are actually mean. A few is very kind though. I confused sometimes they laugh even if there is nothing to happen. What did I do anything?? And they get sullen for no reason. I didn't understand them at all!! Guys are really big. They all are like Semmy Schilt from K-1 so that they have huge sausages and drink beer a lot. I don't know why they can create delicate sophisticate things. It comes from the charactoristic of stubborn? Girls are so cute with drooping eyes and balloon-breast, wow!! Price of commodities are not so high. Simple design. You can take on the S-barn with eurail. Berline Nothing.. I have no impression about this city.. but when I stayed at hotel run by Catholic a sister was so kind. When she touched my heart I wanted to be a christian at the moment.. Deutsche Tschuess!'ちゅーーーす' I often use this word in good-by time with friends in Japan. I thought it is a kind of slang comes from a japanese yankeeish word but its acctually from Germany. It means 'Good-bye'!! It was surprising thing for me. When a German said to me that word, she seemed a Japanese.. Rigid, closed, they are like Japanese.. Racism lives in their unconsciousness even Adolf Hitler disappered. I watched a movie 'The Great dictator - Charlie Chaplin' since I back from Europe. Germany is the most interesting country for me yet I don't like it. Monaco Monaco is famous for F1 and as known as gorgeous city, but I think its not. Super exclusive cars run in the city though.. Messy.. I lapped the famous course. Uphill and narrow. If you ask me, its just a winding road. Vulgarity!! Richest people in the world make the greatest drivers in the world drive the most expense cars in the world from the greatest racing team in the world at a suck city. As I was back in the teenage when I rode bikes in winding road I was mad in riding. Vulgarity brings real excitement!! Its no doubt Monaco GP is special and kind of immaturity that I love but F1 is matured. 30 min from Nice by train. Moto Europeans like moto-bikes especially in Italy and Spain. Against expectation, they ride european bikes not made in Japan. BMW, Duca are the top-notch for them. Applilia is next. Piaggio and vespa are more popular for the masses. Lots of replicas with small engine up to 125 were running on the continental like nobby?? |
![]() |
Posted by funa : 02:27 AM | Europe | Comment (0) | Trackback (0)
< April 2025 > | ||||||
Sun | Mon | Tue | Wed | Thi | Fri | Sat |
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |