PHP Classes

No image

Recommend this page to a friend!

      Barcode  >  All threads  >  No image  >  (Un) Subscribe thread alerts  
Subject:No image
Summary:The class does not generate the image
Messages:4
Author:edgar gomez
Date:2005-08-04 14:19:07
Update:2010-07-09 19:26:07
 

  1. No image   Reply   Report abuse  
Picture of edgar gomez edgar gomez - 2005-08-04 14:19:07
I have php 4.1.1
GD Support enabled
GD Version 1.6.2
FreeType Support enabled
FreeType Linkage with TTF library
JPG Support enabled
PNG Support enabled
WBMP Support enabled

But I donīt get the image in any format.

  2. Re: No image   Reply   Report abuse  
Picture of Harish Chauhan Harish Chauhan - 2005-08-06 03:59:54 - In reply to message 1 from edgar gomez
Have you checked the font settings.

  3. Re: No image   Reply   Report abuse  
Picture of deux deux - 2010-01-29 13:21:17 - In reply to message 2 from Harish Chauhan
i have the same problem too
i have uploaded into linux server

and this sample PATH_TRANSLATED gone wrong

Notice: Undefined index: PATH_TRANSLATED in /var/www/html/scs/bar.php on line 5
/arialbd.ttf


where in your code is using PATH_TRANSLATED.

but when in my local PC with Windows, its working perfectly.

and where i should change the font settings?
what variable i can change to customize the font location?

thanks bro :)

  4. Re: No image   Reply   Report abuse  
Picture of w4d w4d - 2010-07-09 19:26:07 - In reply to message 3 from deux
Replace line #54 in barcode.inc.php with this:

$this->_font=dirname($_SERVER["SCRIPT_FILENAME"])."/"."arialbd.ttf";

Then, upload the font (found on your computer in C:\WINDOWS\Fonts\) to the directory of the class file.

I still can't get this damn thing to work.