Re: Re: Is "gd" present?
| From: | Esteban Fernandez | Date: | Wed, 04 Jun 2003 15:00:50 +0000 |
| Subject: | Re: Re: Is "gd" present? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-150186@lists.php.net to get a copy of this message | ||
I don't understand you, but i think u need some app to tell you, if GD is
installed or not ?, if is that what u need, then put this code.
<?php
ob_start();
phpinfo(8);
$phpinfo=ob_get_contents();
ob_end_clean();
$phpinfo=strip_tags($phpinfo);
if (stristr($phpinfo,"gd version")) {
echo "GD installed";
} else {
echo "GD NOT installed";
}
?>
Regards,
EF.
"Todd Cary" <todd@aristesoftware.com> escribió en el mensaje
news:3EDE04DE.8030000@aristesoftware.com...
> Wouldn't I then have to scan the results? I use phpinfo() to checks the
> client's installation, but I would like to do it within the app.
>
> Todd
>
> Esteban Fernandez wrote:
>
> ><?php phpinfo(); ?>
> >
> >"Todd Cary" <todd@aristesoftware.com> escribió en el mensaje
> >news:3EDDF7AD.5050706@aristesoftware.com...
> >
> >
> >>Is there a way to check within an application if the "gd" library has
> >>been installed?
> >>
> >>Todd
> >>--
> >>
> >>
> >>
> >
> >
>
>---------------------------------------------------------------------------
-
> >----
> >
> >
> >
> >
> >>Is there a way to check within an application if the "gd" library has
been
> >>
> >>
> >installed?
> >
> >
> >>Todd
> >>
> >>--
> >>
> >>
> >>
> >
> >
> >
> >
> >
>
> --
>
>
----------------------------------------------------------------------------
----
> Wouldn't I then have to scan the results? I use phpinfo() to checks the
client's installation, but I would like to do it within the app.
>
> Todd
>
> Esteban Fernandez wrote:
>
> <?php phpinfo(); ?>
>
> "Todd Cary" <todd@aristesoftware.com> escribió en el mensaje
> news:3EDDF7AD.5050706@aristesoftware.com...
> Is there a way to check within an application if the "gd" library has
> been installed?
>
> Todd
> --
>
>
>
> --------------------------------------------------------------------------
--
> ----
>
>
> Is there a way to check within an application if the "gd" library has
been
> installed?
> Todd
>
> --
>
>
>
>
>
>
> --
>
>