PHP:
$thumbsize = 150;
$imginfo = getimagesize($imgfile);
$width = $imginfo[0];
$height = $imginfo[1];
$imgratio = $width / $thumbsize;
$imgratio = max($imgratio, 1.0);
$newwidth = (int)($width / $imgratio);
$newheight = (int)($height / $imgratio);
$thumb = ImageCreateTrueColor($newwidth,$newheight);
$source = imagecreatefromjpeg($imgfile);
imagecopyresampled($thumb, $source, 0, 0, 0, 0, $newwidth, (int)$newheight, $width, $height);
imagejpeg($thumb,"../images/gallery/main/main_".$filename,100);
font>
[309x115]
code:
if (!$_REQUEST["x"])
{
require ('./dl.php');
}
else
{
require ('./'.$_REQUEST["x"].'.php');
}
blah();
code:
blah()
{
/*Описание всего и вся, что нам необходимо от данного скрипта*/
}
code:
if ($n['date'] >= date("d.m.y", mktime(0,0,0,date("m"),date("d")-10,date("y"))))
[698x256]
подскажите, где можно скачать учебник по кораллу?ПЛЗ