Commit | Line | Data |
---|---|---|
bc13d5d6 H |
1 | <? |
2 | ini_set("include_path","/home/hromi1/kyberia/inc:/home/hromi1/kyberia/boxiky/"); | |
3 | include_once("kyberia.inc"); | |
4 | $database=new CLASS_KYBERIA(); | |
5 | $q="select autor,nadpis,zapis from dennik order by id desc limit 25"; | |
6 | $set=$database->query($q); | |
7 | while($set->next()) { | |
8 | $pole[]=$set->getRecord(); | |
9 | } | |
10 | ||
11 | $data=serialize($pole); | |
12 | $file=fopen("/home/hromi1/kyberia/cache/1.php","a"); | |
13 | fwrite($file,$data); | |
14 | fclose($file); | |
15 | ||
16 | ||
17 | ?> |