vladimircape
Новичок
вот код
отключаю header и сохраняю в файл, нормальная картинка
когда хочу вывести в браузер
пишет что не может быть выведена т.к. содержит ошибки, и больше ничего
хотя я поставил
ini_set("display_errors","on");
error_reporting (E_ALL);
кодировка utf-8 без BOM
PHP:
if( $this->imagetype[0] != "jpeg" ) exit;
$ifunc = 'image'.$this->imagetype[0];
if( !function_exists( $ifunc ) ) exit;
//header( 'Content-type: image/'.$this->imagetype[0] );
$ifunc( $this -> image, '1', $this->imagetype[1] );
когда хочу вывести в браузер
PHP:
header( 'Content-type: image/'.$this->imagetype[0] );
$ifunc( $this -> image, '', $this->imagetype[1] );
хотя я поставил
ini_set("display_errors","on");
error_reporting (E_ALL);
кодировка utf-8 без BOM