Warning: file_get_contents(http://www.tenman.info/sample1.html) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /virtual/tenman/includes/coop-frog/scripts/trans.php(2584) : eval()'d code on line 1
test

Top Example

PHPスクリプトを記述する

記法で、スクリプトを記述することが出来ます。
簡単な例を、あげます。

head line
    1. phpを使う
    2. 日付
    3. 週番号
    4. 通算日 年末カウントダウン
    5. 時刻
    6. 現在のページの最終更新時刻
    7. 指定したファイルのハッシュ値
    8. アルファベットだけ13文字シフト
    9. 桁区切りつき数値
    10. 英数シャッフル
    11. 文字列を含んでいれば、表示
    12. 円周率
    13. 平方根
    14. 年齢 キムタクの場合 1972年11月13日
    15. 足し算
    16. 引き算
    17. 掛け算
    18. 割り算
    19. 剰余
    20. 指定したURLからのレスポンスなどを表示
    21. あわせ技

phpを使う

括弧の中をphpとして評価しその結果を表示することが出来ます。

日付

2008年11月20日

eval>[date("Y年m月d日")]

週番号

47

eval>[date("W")]

通算日 年末カウントダウン

41

eval>[365-date("z")]

時刻

09:07:07

eval>[date("h:i:s")]

現在のページの最終更新時刻

April 28 2008 12:43:14.

eval>[date ("F d Y H:i:s.", getlastmod())]

指定したファイルのハッシュ値

c1aba41d2a809fa8a6677ef011cc8e35

eval>[md5_file("http://www.tenman.info/")]

アルファベットだけ13文字シフト

宮城県 zvlntvxra

eval>[str_rot13('宮城県 miyagiken')]

桁区切りつき数値

123,456,789

eval>[number_format(123456789)]

英数シャッフル

eacbd

eval>[str_shuffle("abcde")]

文字列を含んでいれば、表示

this is a pen

eval>[strpbrk("this is a pen", 't')]

pen

eval>[strpbrk("this is a pen", 'p')]

円周率

3.1415926535898

eval>[M_PI]

平方根

1.4142135623731

eval>[sqrt(2)]

年齢 キムタクの場合 1972年11月13日

36

eval>[(int)((date("Ymd") - 19721113)/10000)]

足し算

45

eval>[1+2+3+4+5+6+7+8+9]

引き算

0

eval>[10-1-2-3-4]

掛け算

362880

eval>[1*2*3*4*5*6*7*8*9]

割り算

2.7557319223986E-6

eval>[1/2/3/4/5/6/7/8/9]

剰余

3

eval>[fmod(1200,7)]

指定したURLからのレスポンスなどを表示

2008 11
. . . . . 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
<<

keyword news

>>
eval>[mb_convert_encoding(strip_tags(file_get_contents("http://www.sample….com/")),"UTF-8","auto")]

あわせ技

ネット上にあるテンプレートと、インライン置換により、まったくhtmlを記述しなくても、高度な表現が可能になります。
実際には、テンプレートの入手に必ずしもこのphpの記法が必要なわけではありません。

【shape】

http://www.tenman.info/images/pen.jpg?w=180h=180alt=sample

【/shape】

【description】

www.tenman.info トップページに表示されている運営者の鉛筆立てです。

【/description】

eval>[file_get_contents("http://www.tenman.info/sample1.html")]