Поделитесь ссылочкой на средства - любопытно было бы хром обмануть :)---------- Добавлено 18.11.2013 в 15:54 ----------
Вижу, как поправить?
$config = array( 'width' => rand(300, 600), // ширина 'height' => rand(300, 600), // высота 'shapes' => rand(10, 20), // количество фигур);$image = new Image($config);$image->render();exit;class Image{ private $config; private $handler; private $shapes = array( 'arc', 'text', 'ellipse', ); public function __construct($config) { $this->config = $config; } public function render() { $this->handler = imagecreate($this->config['width'], $this->config['height']); for($i=0; $i<$this->config['shapes']; $i++) { $shape = $this->shapes[array_rand($this->shapes)]; $funcname = "draw_$shape"; $this->$funcname(); } header('Content-type: image/jpeg'); imagejpeg($this->handler); imagedestroy($this->handler); } private function draw_arc() { $centerx = rand(0,$this->config['width']-1); $centery = rand(0,$this->config['height']-1); $width = rand(1, $this->config['width']/2); $height = rand(1, $this->config['height']/2); $start = rand(0, 360); $end = rand($start, 360); $color = imagecolorallocate( $this->handler, rand(0,255), rand(0,255),rand(0,255) ); imagefilledarc( $this->handler, $centerx, $centery, $width, $height, $start, $end, $color, IMG_ARC_PIE ); } private function draw_ellipse() { $centerx = rand(0,$this->config['width']-1); $centery = rand(0,$this->config['height']-1); $width = rand(1, $this->config['width']/2); $height = rand(1, $this->config['height']/2); $color = imagecolorallocate($this->handler, rand(0,255), rand(0,255),rand(0,255)); imagefilledellipse($this->handler, $centerx, $centery, $width, $height, $color ); } private function draw_text() { $centerx = rand(0,$this->config['width']-1); $centery = rand(0,$this->config['height']-1); $text = rand(0, 1000); $color = imagecolorallocate($this->handler, rand(0,255), rand(0,255),rand(0,255)); imagestring($this->handler, 5, $centerx, $centery, "$text", $color); }}
Можно дописать свои рисовалки в виде методов draw_paintername.
Осталось натравить на скрипт htaccess
Результат в аттаче.
На собственной шкуре и сопоставляя рассказы коллег. На новых ипах нормально все.
Подр...чил хоть?---------- Добавлено 17.11.2013 в 18:40 ----------Испаряюсь с темы - надоело - 6 тыщ страниц одно и то же. Всем привет - пишите письма.
Force68, покайся и отрекись от своей ереси три раза, и будешь прощен.
Так сравнить не с чем, нужен ДДЛ для оналитеки.
А мне кто-то спалил в личку ДДГ( дорвеи для гуманоидов ). Клевые.
Осталось сравнить их с ДДЛ... Бабуль, выручай.---------- Добавлено 17.11.2013 в 18:23 ----------
Зарежет, как пить дать
Началось с генераторов текста, после подхватили генераторы картинок, теперь генераторы видосов и музыки на очереди. :)
Искуственный интеллект создаст не гугл, а дорвейщики :)
У меня как в швейцарском банке, пали. :)
Так пали сюда их. А то как в мультике про зеркальце. Лови минусяку.