[Gloucs] barcoding

Iain Calder gloucs at mailman.lug.org.uk
Wed May 7 23:14:01 2003


Guy Edwards wrote:

>
>It's all going pretty fine apart from the barcode image generation script at
>http://www.mribti.com/barcode/sample.php
>which seems to be complaining about  
>
>Fatal Error: : Call to undefined function: imagecreate() in /var/www/html/barcode.php on line 88
>
>line 88 being:
>	$this->mImg  	= ImageCreate($this->mWidth, $this->mHeight);
>
>I've got php-gd installed as well as gd2 and libgd2 so I hope it's not 
>some missing gd function. Anyone any ideas on this?
>Guy
>  
>
imagecreate works fine for me with PHP 4.1 and gd 1.x compiled-in.  If 
you do a phpinfo() you should see a section declaring that GD support is 
enabled.  If not, maybe you need to edit php.ini and uncomment 
'extension=gd.so'

Iain