Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > 0afeee9cca140e167a996902b9a677c5 > files > 725

php-manual-en-4.3.0-2mdk.noarch.rpm

<HTML
><HEAD
><TITLE
>gd_info</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="PHP Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="Image functions"
HREF="ref.image.html"><LINK
REL="PREVIOUS"
TITLE="exif_thumbnail"
HREF="function.exif-thumbnail.html"><LINK
REL="NEXT"
TITLE="getimagesize"
HREF="function.getimagesize.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-1"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.exif-thumbnail.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.getimagesize.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.gd-info"
></A
>gd_info</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN34082"
></A
><P
>    (PHP 4 &#62;= 4.3.0)</P
>gd_info&nbsp;--&nbsp;Retrieve information about the currently installed GD library</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN34085"
></A
><H2
>Description</H2
>array <B
CLASS="methodname"
>gd_info</B
> ( void)<BR
></BR
><P
>&#13;     Returns an associative array describing the version and capabilities of
     the installed GD library.  
    </P
><P
>&#13;     <DIV
CLASS="table"
><A
NAME="AEN34093"
></A
><P
><B
>Table 1. Elements of array returned by <B
CLASS="function"
>gd_info()</B
></B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><THEAD
><TR
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
>Attribute</TH
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
>Meaning</TH
></TR
></THEAD
><TBODY
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>GD Version</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><A
HREF="language.types.string.html"
><B
CLASS="type"
>string</B
></A
> value describing the installed
          <TT
CLASS="literal"
>libgd</TT
> version.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Freetype Support</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><A
HREF="language.types.boolean.html"
><B
CLASS="type"
>boolean</B
></A
> value.  <TT
CLASS="constant"
><B
>TRUE</B
></TT
> 
          if Freetype Support is installed.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Freetype Linkage</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><A
HREF="language.types.string.html"
><B
CLASS="type"
>string</B
></A
> value describing the way in which
          Freetype was linked. Expected values are: 'with freetype', 
          'with TTF library', and 'with unknown library'.  This element will
          only be defined if <TT
CLASS="literal"
>Freetype Support</TT
> evaluated to
          <TT
CLASS="constant"
><B
>TRUE</B
></TT
>.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>T1Lib Support</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><A
HREF="language.types.boolean.html"
><B
CLASS="type"
>boolean</B
></A
> value.  <TT
CLASS="constant"
><B
>TRUE</B
></TT
>
          if <TT
CLASS="literal"
>T1Lib</TT
> support is included.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>GIF Read Support</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><A
HREF="language.types.boolean.html"
><B
CLASS="type"
>boolean</B
></A
> value.  <TT
CLASS="constant"
><B
>TRUE</B
></TT
>
          if support for <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>reading</I
></SPAN
> <TT
CLASS="literal"
>GIF</TT
> 
          images is included.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>GIF Create Support</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><A
HREF="language.types.boolean.html"
><B
CLASS="type"
>boolean</B
></A
> value.  <TT
CLASS="constant"
><B
>TRUE</B
></TT
>
          if support for <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>creating</I
></SPAN
> <TT
CLASS="literal"
>GIF</TT
>
          images is included.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>JPG Support</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><A
HREF="language.types.boolean.html"
><B
CLASS="type"
>boolean</B
></A
> value.  <TT
CLASS="constant"
><B
>TRUE</B
></TT
>
          if <TT
CLASS="literal"
>JPG</TT
> support is included.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>PNG Support</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><A
HREF="language.types.boolean.html"
><B
CLASS="type"
>boolean</B
></A
> value.  <TT
CLASS="constant"
><B
>TRUE</B
></TT
>
          if <TT
CLASS="literal"
>PNG</TT
> support is included.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>WBMP Support</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><A
HREF="language.types.boolean.html"
><B
CLASS="type"
>boolean</B
></A
> value.  <TT
CLASS="constant"
><B
>TRUE</B
></TT
>
          if <TT
CLASS="literal"
>WBMP</TT
> support is included.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>XBM Support</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><A
HREF="language.types.boolean.html"
><B
CLASS="type"
>boolean</B
></A
> value.  <TT
CLASS="constant"
><B
>TRUE</B
></TT
>
          if <TT
CLASS="literal"
>XBM</TT
> support is included.</TD
></TR
></TBODY
></TABLE
></DIV
>
    </P
><P
>&#13;     <TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN34163"
></A
><P
><B
>Example 1. Using <B
CLASS="function"
>gd_info()</B
></B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="php"
>&#60;?php
var_dump(gd_info());

/* Typical Output
   ==============

array(9) {
  ["GD Version"]=&#62;
  string(24) "bundled (2.0 compatible)"
  ["FreeType Support"]=&#62;
  bool(false)
  ["T1Lib Support"]=&#62;
  bool(false)
  ["GIF Read Support"]=&#62;
  bool(true)
  ["GIF Create Support"]=&#62;
  bool(false)
  ["JPG Support"]=&#62;
  bool(false)
  ["PNG Support"]=&#62;
  bool(true)
  ["WBMP Support"]=&#62;
  bool(true)
  ["XBM Support"]=&#62;
  bool(false)
}

*/
?&#62;</PRE
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
>
    </P
><P
>&#13;     See also: <A
HREF="function.imagepng.html"
><B
CLASS="function"
>imagepng()</B
></A
>,
     <A
HREF="function.imagejpeg.html"
><B
CLASS="function"
>imagejpeg()</B
></A
>,
     <A
HREF="function.imagegif.html"
><B
CLASS="function"
>imagegif()</B
></A
>,
     <A
HREF="function.imagewbmp.html"
><B
CLASS="function"
>imagewbmp()</B
></A
>, and
     <A
HREF="function.imagetypes.html"
><B
CLASS="function"
>imagetypes()</B
></A
>.
    </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.exif-thumbnail.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.getimagesize.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>exif_thumbnail</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.image.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>getimagesize</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>