.gif)
mysql_query("UPDATE `chat_javob_berildi_jadvali` SET `oqildi` = '0' WHERE `javob_oldi_id` = '".$user_id."' ");Сирожиддин (Раис), <?php
//kesh olinadigan php saxifaning boshiga qo'yiladi.
$url = $_SERVER["SCRIPT_NAME"];
$break = Explode('/', $url);
$file = $break[count($break) - 1];
$cachefile = 'cached-'.substr_replace($file ,"",-4).'.html';
$cachetime = 18000;
// kesh xosil qilinish vaqtti bu $cachetime
if (file_exists($cachefile) && time() - $cachetime < filemtime($cachefile)) {
echo "<!-- Cached copy, generated ".date('H:i', filemtime($cachefile))." -->\n";
include($cachefile);
exit;
}
ob_start();
?><?php
// Kesh olingan saxifaning oxiriga qo'yiladi, bu code kesh faylni ochib berad
$cached = fopen($cachefile, 'w');
fwrite($cached, ob_get_contents());
fclose($cached);
ob_end_flush();
?>$nomi = isset ($_POST['nomi']) ? trim($_POST['nomi']) : '';
$nom = $user_id.'_'.time().'.jpg';
if (isset($_POST['submit'])) {
mysql_query("INSERT INTO `aju` SET
`user_id` = '".$user['id']."',
`nomi` = '".mysql_real_escape_string($nomi)."',
`time` = '".time()."'");
@copy(''.$nomi.'', 'fils/'.$nom.'');
echo'bajardm';
} else {
echo '<form action="" method="POST"> Import qilish <input type="text" name="nomi" value="http://" maxlength="100"> <input type="submit" name="submit" value="Qo\'shish"> </form> </div>';
}