PHP.SU

Программирование на PHP, MySQL и другие веб-технологии
PHP.SU Портал     На главную страницу форума Главная     Помощь Помощь     Поиск Поиск     Поиск Яндекс Поиск Яндекс     Вакансии  Пользователи Пользователи

Страниц (1): [1]

> Найдено сообщений: 3
shtrih Отправлено: 10 Декабря, 2015 - 21:02:58 • Тема: Не отображается captha • Форум: Apache и другие веб-серверы

Ответов: 3
Просмотров: 631
Viper пишет:
Уберите @ и включите вывод ошибок в php, далее смотрите логи ошибок php.

Уже всё решил. Просто забыл отписаться. Проблема была в том, что переменная одна была не определена.
shtrih Отправлено: 10 Декабря, 2015 - 00:04:29 • Тема: Не отображается captha • Форум: Apache и другие веб-серверы

Ответов: 3
Просмотров: 631
прикладываю файлы каптчи на всякий случай.

Вот такой простой код, тоже не отображается

PHP:
скопировать код в буфер обмена
  1.  
  2. <?PHP
  3. header("Content-Type: image/png");
  4. $im = @imagecreate(110, 20)
  5.     or die("Невозможно создать поток изображения");
  6. $background_color = imagecolorallocate($im, 0, 0, 0);
  7. $text_color = imagecolorallocate($im, 233, 14, 91);
  8. imagestring($im, 1, 5, 5,  "Простая Текстовая Строка", $text_color);
  9. imagepng($im);
  10. ?>
  11.  
shtrih Отправлено: 10 Декабря, 2015 - 00:00:44 • Тема: Не отображается captha • Форум: Apache и другие веб-серверы

Ответов: 3
Просмотров: 631
Доброй ночи!

Скачал готовые классы, по созданию изображений каптчи. Настроил запускаю, а вместо изображения, квадратик незагруженной картинки. При этом если скачиваю на хостинг, то там всё нормально отображается. Все файлы в одном каталоге, поэтому с путями проблем быть не должно.
php и apache развернут на linux. Проблема видно в их настройке, но найти где не могу.
Подскажите где копать? gd установил и включил.

PHP Version 5.6.15
Настройки php
CODE (htmlphp):
скопировать код в буфер обмена
  1.  
  2. './configure' '--srcdir=../php-5.6.15' '--config-cache' '--prefix=/usr' '--sbindir=/usr/bin' '--sysconfdir=/etc/php' '--localstatedir=/var' '--with-layout=GNU' '--with-config-file-path=/etc/php' '--with-config-file-scan-dir=/etc/php/conf.d' '--disable-rpath' '--mandir=/usr/share/man' '--without-pear' '--disable-cli' '--with-apxs2' '--enable-bcmath=shared' '--enable-calendar=shared' '--enable-dba=shared' '--enable-exif=shared' '--enable-ftp=shared' '--enable-gd-native-ttf' '--enable-intl=shared' '--enable-mbstring' '--enable-opcache' '--enable-phar=shared' '--enable-posix=shared' '--enable-shmop=shared' '--enable-soap=shared' '--enable-sockets=shared' '--enable-sysvmsg=shared' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--enable-zip=shared' '--with-bz2=shared' '--with-curl=shared' '--with-db4=/usr' '--with-enchant=shared,/usr' '--with-fpm-systemd' '--with-freetype-dir=/usr' '--with-xpm-dir=/usr' '--with-gd=shared,/usr' '--with-gdbm' '--with-gettext=shared' '--with-gmp=shared' '--with-iconv=shared' '--with-icu-dir=/usr' '--with-imap-ssl' '--with-imap=shared' '--with-kerberos=/usr' '--with-jpeg-dir=/usr' '--with-vpx-dir=/usr' '--with-ldap=shared' '--with-ldap-sasl' '--with-libzip' '--with-mcrypt=shared' '--with-mhash' '--with-mssql=shared' '--with-mysql-sock=/run/mysqld/mysqld.sock' '--with-mysql=shared,mysqlnd' '--with-mysqli=shared,mysqlnd' '--with-openssl=shared' '--with-pcre-regex=/usr' '--with-pdo-mysql=shared,mysqlnd' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-pgsql=shared' '--with-pdo-sqlite=shared,/usr' '--with-pgsql=shared' '--with-png-dir=/usr' '--with-pspell=shared' '--with-snmp=shared' '--with-sqlite3=shared,/usr' '--with-tidy=shared' '--with-unixODBC=shared,/usr' '--with-xmlrpc=shared' '--with-xsl=shared' '--with-zlib' 'CFLAGS=-march=x86-64 '-mtune=generic' '-O2' '-pipe' '-fstack-protector-strong'' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-march=x86-64 '-mtune=generic' '-O2' '-pipe' '-fstack-protector-strong''
  3.  


CODE (htmlphp):
скопировать код в буфер обмена
  1.  
  2. gd
  3.  
  4. GD Support      enabled
  5. GD headers Version      2.1.1
  6. GD library Version      2.1.1
  7. FreeType Support        enabled
  8. FreeType Linkage        with freetype
  9. FreeType Version        2.6.1
  10. GIF Read Support        enabled
  11. GIF Create Support      enabled
  12. JPEG Support    enabled
  13. libJPEG Version 8
  14. PNG Support     enabled
  15. libPNG Version  1.6.19
  16. WBMP Support    enabled
  17. XPM Support     enabled
  18. libXpm Version  30411
  19. XBM Support     enabled
  20. WebP Support    enabled
  21.  

Страниц (1): [1]
Powered by PHP  Powered By MySQL  Powered by Nginx  Valid CSS  RSS

 
Powered by ExBB FM 1.0 RC1. InvisionExBB