search for in the  
<imagecreateimagecreatefromgd2part>
Last updated: Thu, 19 May 2005

imagecreatefromgd2

(PHP 4 >= 4.1.0, PHP 5)

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

Description

resource imagecreatefromgd2 ( string filename )

Warning

This function is currently not documented; only the argument list is available.

Note: This function requires GD 2.0.1 or later.

Tip: You can use a URL as a filename with this function if the fopen wrappers have been enabled. See fopen() for more details on how to specify the filename and Appendix L for a list of supported URL protocols.

Warning

Windows versions of PHP prior to PHP 4.3.0 do not support accessing remote files via this function, even if allow_url_fopen is enabled.



User Contributed Notes
imagecreatefromgd2
garrett at garrettm dot com
25-Nov-2002 11: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 06: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: Thu, 19 May 2005
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: The Server Pages
Last updated: Thu May 19 17:35:34 2005 CDT