記法で、スクリプトを記述することが出来ます。
簡単な例を、あげます。
括弧の中を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/")]
宮城県 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)]
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)]
| 月 | 火 | 水 | 木 | 金 | 土 | 日 |
| . | . | . | . | . | 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")]