imagecreatefromgd2

(PHP 4 >= 4.1.0, PHP 5)

imagecreatefromgd2 -- Create a new image from GD2 file or URL

Description

resource imagecreatefromgd2 ( string filename )

Внимание

К настоящему времени эта функция еще не была документирована; для ознакомления доступен только список аргументов.

Замечание: Эта функция нуждается в GD версии 2.0.1 или выше.

Подсказка: Для этой функции вы можете использовать URL в качестве имени файла, если была включена опция "fopen wrappers". Смотрите более подробную информацию об определении имени файла в описании функции fopen(), а также список поддерживаемых протоколов URL в Прил. M.

Внимание

Версии PHP для Windows до PHP 4.3.0 не поддерживают возможность использования удаленных файлов этой функцией даже в том случае, если опция allow_url_fopen включена.



imagecreatefromgd2
garrett at garrettm dot com
25-Nov-2002 09:06
i was working on getting gd 2.0.7 and php 4.2.3 to compile, undefined functions error, had to modify about 4 lines, 3 in php's source, ext/gd/gd.c and ext/gd/gd_ctx.c find anyline in those two files that matches

io_ctx->free

and make it

io_ctx->gd_free

and it should compile.
fiji at free dot fr
14-Oct-2002 04:50
I had to made some modification to enable and compile gd2.0.1 with php4.2.3 here it is:
get and untar gd2.0.1 beta
if your server as mine doesn't have any X support or you don't want it, open Makefile to disable xpm support, find "gdxpm.o"  in lines and delete it (because even if you don't ask for it in libs cmd it will compile in and you'll get an error when loading requesting libXpm)
remove any libgd1.so.xx
"make install"
in php goto ext/gd dir
modify gd.c and add "#define HAVE_LIBGD20 1" at the beginning
compile (don't forget giving the --with-jpeg-dir and png too), install and it should works

<imagecreateimagecreatefromgd2part>
 Last updated: Mon, 14 Nov 2005