|
9.8 Кб |
|
| решил перенести старый проект на 7й ПХП.
Поднял сервер Linux Nginx PHP MySql
есть собственная капча и она перестала работать
Сделал самый простой пример
<?php
header ("Content-type: image/png");
$im = @imagecreate (50, 100)
or die ("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate ($im, 255, 255, 255);
$text_color = imagecolorallocate ($im, 233, 14, 91);
imagestring ($im, 1, 5, 5,"A Simple Text String", $text_color);
imagepng ($im);
?>
|
Всё так же, картинка пустая.
GD включено.
array(12) { ["GD Version"]=> string(5) "2.1.1" ["FreeType Support"]=> bool(true) ["FreeType Linkage"]=> string(13) "with freetype" ["GIF Read Support"]=> bool(true) ["GIF Create Support"]=> bool(true) ["JPEG Support"]=> bool(true) ["PNG Support"]=> bool(true) ["WBMP Support"]=> bool(true) ["XPM Support"]=> bool(true) ["XBM Support"]=> bool(true) ["WebP Support"]=> bool(true) ["JIS-mapped Japanese Font Support"]=> bool(false) }
|
Комментирую заголовок, получаю в браузере это:
�PNG IHDR2d�&�PLTE����[�˝� pHYs���+
|
Причём всё работает на старом сервере LAMP c 5 ПХП | |
|
|