Re: [GD-DEVEL] I cant get php_gd.dll to work
| From: | Pierre Joye | Date: | Fri, 21 Mar 2008 10:53:30 +0000 |
| Subject: | Re: [GD-DEVEL] I cant get php_gd.dll to work | ||
| References: | 1 | Groups: | php.gd.devel |
| Request: | Send a blank email to php-gd-devel+get-399@lists.php.net to get a copy of this message | ||
Hi,
On Fri, Mar 21, 2008 at 3:07 AM, Mark <mark76g@hotmail.com> wrote:
> Hi,
>
> Im new to php and i cant get the gd graphics libaray to work.
> Im running Apache, Mysql, Windows xp
>
> I downloaded and installed php from php.net.
>
> After much screwing around I finally got in to work with mysql and wrote a
> few basic scripts.
> Im stuck on the gd libarary.
>
> I downloaded the file php_gd.dll and copied it to my ext directory. I know
> php can see it because
> the mysql files are there and they work fine.
>
> I restarted Apache and phpinfo() reads
> gd
> GD Support enabled
> GD Version bundled (2.0.34 compatible)
> FreeType Support enabled
> FreeType Linkage with freetype
> FreeType Version 2.1.9
> T1Lib Support enabled
> GIF Read Support enabled
> GIF Create Support enabled
> JPG Support enabled
> PNG Support enabled
> WBMP Support enabled
> XBM Support enabled
Congratulations! GD Support is up and running.
> I try to run the following code fragment to test it out ....
>
>
> <?PHP
> $image=$imagecreate(100,100);
> ?>
>
> And I get.
>
> Notice: Undefined variable: imagecreate in C:\Program Files\Apache Software
> Foundation\Apache2.2\htdocs\livepoker.php on line 5
>
> Fatal error: Function name must be a string in C:\Program Files\Apache
> Software Foundation\Apache2.2\htdocs\livepoker.php on line 5
imagecreate is what you have to call, not using a variable named $imagecreate.
Cheers,
--
Pierre
http://blog.thepimp.net | http://www.libgd.org